Unable to locate manually generated backup

Luana Premoli

Well-Known Member
Oct 3, 2016
68
7
8
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:
[email protected] [~]# 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/
[email protected] [~]#
[email protected] [~]#
[email protected] [~]# 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/
[email protected] [~]# 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/
[email protected] [~]# 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
[email protected] [~]#

I backed up normally:


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

Code:
[email protected] [~]# 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/
[email protected] [~]#

In the logs:

Code:
[email protected] [~]# 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.
[email protected] [~]#

Can help me?

Thanks
 
Last edited by a moderator:

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,300
363
Houston
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.
 

Luana Premoli

Well-Known Member
Oct 3, 2016
68
7
8
São Paulo/Brazil
cPanel Access Level
Root Administrator
Hi,


Code:
[email protected] [~]# 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'
[email protected] [~]#
Yes., I have activated backup for all accounts.

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


Thanks
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,300
363
Houston
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!
 

Luana Premoli

Well-Known Member
Oct 3, 2016
68
7
8
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.
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,300
363
Houston
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.