Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Unable to locate manually generated backup

Discussion in 'Data Protection' started by Luana Premoli, May 13, 2019.

  1. Luana Premoli

    Luana Premoli Well-Known Member

    Joined:
    Oct 3, 2016
    Messages:
    54
    Likes Received:
    5
    Trophy Points:
    8
    Location:
    São Paulo/Brazil
    cPanel Access Level:
    Root Administrator
    Hi,

    Scheduled backup is configured on WHM


    upload_2019-5-13_14-39-15.png



    But when looking for the backup, it is not shown:


    Code:
    root@server01.example.com [~]# ls -lah /backup/
    total 76K
    drwx--x--x   5 root root 4.0K May 12 02:00 ./
    dr-xr-xr-x. 23 root root 4.0K Oct 13  2018 ../
    drwx--x--x   5 root root 4.0K Sep  8  2018 cpbackup/
    drwx--x--x   2 root root 4.0K May 12 02:00 .meta/
    -rw-------   1 root root  56K May 12 02:00 transports.db
    drwx--x--x   3 root root 4.0K May 12 02:00 weekly/
    root@server01.example.com [~]#
    root@server01.example.com [~]#
    root@server01.example.com [~]# ls -lah /backup/weekly/
    total 12K
    drwx--x--x 3 root root 4.0K May 12 02:00 ./
    drwx--x--x 5 root root 4.0K May 12 02:00 ../
    drwx--x--x 4 root root 4.0K May 12 02:00 2019-05-12/
    root@server01.example.com [~]# ls -lah /backup/weekly/2019-05-12/
    total 16K
    drwx--x--x 4 root root 4.0K May 12 02:00 ./
    drwx--x--x 3 root root 4.0K May 12 02:00 ../
    drwx--x--x 2 root root 4.0K May 12 02:00 accounts/
    drwx--x--x 4 root root 4.0K May 12 02:00 system/
    root@server01.example.com [~]# ls -lah /backup/weekly/2019-05-12/accounts/
    total 12K
    drwx--x--x 2 root root 4.0K May 12 02:00 ./
    drwx--x--x 4 root root 4.0K May 12 02:00 ../
    -r-------- 1 root root  378 May 12 02:00 .master.meta
    root@server01.example.com [~]#
    

    I backed up normally:


    /scripts/pkgacct newse189 /backup/cpbackup/daily/

    Code:
    root@server01.example.com [~]# ll /backup/cpbackup/daily/
    total 167G
    drwx--x--x 4 root root 4.0K May 10 16:23 ./
    drwx--x--x 5 root root 4.0K Sep  8  2018 ../
    -rw-r--r-- 1 root root   25 May 10 00:25 cpbackupstatus.cfg
    -rw------- 1 root root 167G May 10 16:23 cpmove-newse189.tar.gz
    drwx------ 2 root root 4.0K Sep  7  2018 dirs/
    drwx------ 2 root root 4.0K May 10 00:25 files/
    root@server01.example.com [~]#
    

    In the logs:

    Code:
    root@server01.example.com [~]# cat /usr/local/cpanel/logs/cpbackup/1557637201.log
    [2019-05-12 02:00:01 -0300] info [backup] Setting I/O priority to reduce system load: best-effort: prio 3
    [2019-05-12 02:00:02 -0300] info [backup] Pruning metadata for backup at /backup/weekly/2019-05-12
    [2019-05-12 02:00:02 -0300] info [backup] Creating metadata index for backup at /backup/weekly/2019-05-12
    [2019-05-12 02:00:02 -0300] info [backup] Hard Linking available on "/backup"
    [2019-05-12 02:00:02 -0300] info [backup] Running dir & file backup with target : /backup/weekly/2019-05-12/system
    /bin/gtar: Removing leading `/' from member names
    /bin/gtar: Removing leading `/' from member names
    /bin/gtar: Removing leading `/' from member names
    /bin/gtar: Removing leading `/' from member names
    /bin/gtar: Removing leading `/' from member names
    /bin/gtar: Removing leading `/' from member names
    /bin/gtar: Removing leading `/' from member names
    /bin/gtar: Removing leading `/' from member names
    /bin/gtar: Removing leading `/' from member names
    /bin/gtar: Removing leading `/' from member names
    /bin/gtar: Removing leading `/' from hard link targets
    /bin/gtar: /var/cpanel/dnsadmin/sock: socket ignored
    /bin/gtar: Removing leading `/' from member names
    /bin/gtar: Removing leading `/' from member names
    /bin/gtar: Removing leading `/' from member names
    /bin/gtar: Removing leading `/' from member names
    [2019-05-12 02:00:30 -0300] info [backup] System backups will not be uploaded to any remote destinations.
    [2019-05-12 02:00:30 -0300] info [backup] Running account backup with target : /backup/weekly/2019-05-12/accounts
    [2019-05-12 02:00:30 -0300] info [backup] checking backup for newse189
    [2019-05-12 02:00:30 -0300] info [backup] Queuing transport of meta file: /backup/weekly/2019-05-12/accounts/.master.meta
    [2019-05-12 02:00:30 -0300] info [backup] no_transport = 0 .. and queueid = TQ:TaskQueue:1
    [2019-05-12 02:00:30 -0300] info [backup] leaving queue_backup_transport_item
    [2019-05-12 02:00:30 -0300] info [backup] Queuing prune operation for remote destination weekly backups
    [2019-05-12 02:00:30 -0300] info [backup] no_transport = 0 .. and queueid = TQ:TaskQueue:2
    [2019-05-12 02:00:30 -0300] info [backup] leaving queue_backup_transport_item
    [2019-05-12 02:00:30 -0300] info [backup] Scheduling backup metadata vacuum
    [2019-05-12 02:00:30 -0300] info [backup] Queuing transport reporter
    [2019-05-12 02:00:30 -0300] info [backup] no_transport = 0 .. and queueid = TQ:TaskQueue:3
    [2019-05-12 02:00:30 -0300] info [backup] leaving queue_backup_transport_item
    [2019-05-12 02:00:30 -0300] info [backup] Completed at Sun May 12 02:00:30 2019
    [2019-05-12 02:00:30 -0300] info [backup] Final state is Backup::Success (0)
    [2019-05-12 02:00:30 -0300] info [backup] Sent Backup::Success notification.
    root@server01.example.com [~]#
    

    Can help me?

    Thanks
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #1 Luana Premoli, May 13, 2019
    Last edited by a moderator: May 14, 2019
  2. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,254
    Likes Received:
    479
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @Luana Premoli

    I can't read any of the screenshot you added for the backup configuration, for that data it might be best if you added the output of the following:

    Code:
    cat /var/cpanel/backups/config
    Do you have all the accounts set to be backed up? You can view this from WHM>>Backup>>Backup Configuration -> Back Up User Accounts.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Luana Premoli

    Luana Premoli Well-Known Member

    Joined:
    Oct 3, 2016
    Messages:
    54
    Likes Received:
    5
    Trophy Points:
    8
    Location:
    São Paulo/Brazil
    cPanel Access Level:
    Root Administrator
    Hi,


    Code:
    root@server01.newseventos.com.br [~]# cat /var/cpanel/backups/config
    ---
    BACKUPACCTS: 'yes'
    BACKUPBWDATA: 'yes'
    BACKUPDAYS: 3
    BACKUPDIR: /backup
    BACKUPENABLE: 'yes'
    BACKUPFILES: 'yes'
    BACKUPLOGS: 'yes'
    BACKUPMOUNT: 'no'
    BACKUPSUSPENDEDACCTS: 'no'
    BACKUPTYPE: compressed
    BACKUP_DAILY_ENABLE: 'yes'
    BACKUP_DAILY_RETENTION: 1
    BACKUP_MONTHLY_DATES: 15
    BACKUP_MONTHLY_ENABLE: 'yes'
    BACKUP_MONTHLY_RETENTION: 1
    BACKUP_WEEKLY_DAY: 0
    BACKUP_WEEKLY_ENABLE: 'yes'
    BACKUP_WEEKLY_RETENTION: 2
    CHECK_MIN_FREE_SPACE: 1
    DISABLE_METADATA: 'no'
    ERRORTHRESHHOLD: 3
    FORCE_PRUNE_DAILY: 0
    FORCE_PRUNE_MONTHLY: 0
    FORCE_PRUNE_WEEKLY: 0
    GZIPRSYNCOPTS: --rsyncable
    KEEPLOCAL: 1
    LINKDEST: 0
    LOCALZONESONLY: 'no'
    MAXIMUM_RESTORE_TIMEOUT: 21600
    MAXIMUM_TIMEOUT: 2700
    MIN_FREE_SPACE: 5
    MIN_FREE_SPACE_UNIT: percent
    MYSQLBACKUP: accounts
    POSTBACKUP: 'no'
    PREBACKUP: -1
    PSQLBACKUP: 'no'
    root@server01.newseventos.com.br [~]#
    
    Yes., I have activated backup for all accounts.

    upload_2019-5-17_10-7-13.png


    Thanks
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,254
    Likes Received:
    479
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @Luana Premoli

    Just to be sure when you're looking for the backups are you in /root/ or / - based on the first output you sent it looks like you might be in /root/ due to the ~ signifying the user's home directory.


    If you do:

    Code:
    cd /
    Then:
    Code:
    ls -lah backup
    Is the output different?


    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. Luana Premoli

    Luana Premoli Well-Known Member

    Joined:
    Oct 3, 2016
    Messages:
    54
    Likes Received:
    5
    Trophy Points:
    8
    Location:
    São Paulo/Brazil
    cPanel Access Level:
    Root Administrator
    Hi,

    Yes, I was in ~ but I put the command with the full path:

    Code:
    ll /backup/cpbackup/daily/

    I was seeing the right place. If I were seeing the wrong place, I would have had to use it without the / initial

    Code:
    ll backup/cpbackup/daily/

    I've removed everything from the /backup directory and scheduled to run the next night.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,254
    Likes Received:
    479
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @Luana Premoli

    You can force the backup run as well:

    Code:
    /usr/local/cpanel/bin/backup --force

    Also next to "Backup Accounts" if you click Select Users are all the users included?

    If so nothing actually looks incorrect with the backup configuration which makes it odd that it would be completing.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice