Unable to locate manually generated backup
Hi,
Scheduled backup is configured on WHM
58627
But when looking for the backup, it is not shown:
I backed up normally: /scripts/pkgacct newse189 /backup/cpbackup/daily/
In the logs:
Can help me? Thanks
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/
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:
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
-
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: 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.0 -
Hi, 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. 58771 Thanks0 -
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: cd /
Then:ls -lah backup
Is the output different? Thanks!0 -
Hi, Yes, I was in ~ but I put the command with the full path: 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 / initialll backup/cpbackup/daily/
I've removed everything from the /backup directory and scheduled to run the next night.0 -
Hi @Luana Premoli You can force the backup run as well: /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.0
Please sign in to leave a comment.
Comments
5 comments