Deker

Well-Known Member
Feb 15, 2011
99
4
58
cPanel Access Level
Root Administrator
Hello,

This is about 2 weeks that automatic backup does not work in my WHM.
I didn't made any changes under "WHM >> Backup >> Configure Backup".
Anybody knows that what's wrong with my WHM and how to fix the issue?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,908
2,218
463
Hello :)

Could you check your most recent backup logs in /usr/local/cpanel/logs/cpbackup and let us know if you see any specific error messages?

Thank you.
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
40
248
somewhere over the rainbow
cPanel Access Level
Root Administrator
Do you have backups enabled to back up locally to a location or to FTP back up? Could you try re-saving the area itself to see the results?

Next, in root SSH, check if crond is running:

Code:
ps aux | grep crond
Try restarting it if it isn't running:

Code:
/etc/init.d/crond restart
Additionally, check that the cpbackup cron entry is in the root crontab:

Code:
grep cpbackup /var/spool/cron/root
Finally, check if the cron is even being executed:

Code:
grep cpbackup /var/log/cron
You might try manually running a backup to see if you get any additional errors if the above aren't showing any issue:

Code:
/scripts/cpbackup --force
At that point, check the log file that should be writing to /usr/local/cpanel/logs/cpbackup location for the forced cpbackup
 

monkey64

Well-Known Member
Nov 6, 2011
108
4
68
cPanel Access Level
Root Administrator
Tristan

I too have the same issues as milind.
I followed your suggestions and found that I can force the backup to run if I run:

Code:
/scripts/cpbackup --force
So my problem seems to be a scheduling one..
Checked my /var/log/cron file and found it to be empty so I added the following line:

Code:
0 5 * * * /scripts/cpbackup
However I think my syntax is wrong becuase nothing got backed up this morning.
Any ideas?

grep cpbackup /var/log/cron
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,908
2,218
463
It's possible the backups were not older than 24 hours because you forced a backup generation earlier in the day. If that was the case, then the accounts would not be backed up until the next run. You can see the full backup logs in:

Code:
/usr/local/cpanel/logs/cpbackup/
Thank you.
 

monkey64

Well-Known Member
Nov 6, 2011
108
4
68
cPanel Access Level
Root Administrator
Michael

It has been 48 hours since the last "forced" backup, and despite adding the command to the /var/log/cron file (see above), nothing has been backed up.

Any ideas?