Backup not completed ?

kernow

Well-Known Member
Jul 23, 2004
1,031
62
178
cPanel Access Level
Root Administrator
Running the new backup script, were getting emails from cpanel saying "The backup was not able to be completed because timed out waiting for /bin/backup to finish" However the backup is still running and we get the normal email later in the day saying its completed.
We notice in the root crontab both old and new backup scripts are listed:
/usr/local/cpanel/bin/backup
/usr/local/cpanel/scripts/cpbackup
Is this the problem? should one (legacy) be removed?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,260
463
We notice in the root crontab both old and new backup scripts are listed:
/usr/local/cpanel/bin/backup
/usr/local/cpanel/scripts/cpbackup
Is this the problem? should one (legacy) be removed?
It's safe to remove the legacy backup cron job if you no longer use it. However, it's existence should not be an issue if legacy backups are disabled. The cron job will detect that legacy backups are disabled and it will not generate any backup archives.

Thank you.
 

kernow

Well-Known Member
Jul 23, 2004
1,031
62
178
cPanel Access Level
Root Administrator
The cron job will detect that legacy backups are disabled and it will not generate any backup archives.
Thank you.
That's what we thought, so is there anything else that could cause that error message?
Update.
It maybe the cron job. I believe that /usr/local/cpanel/scripts/cpbackup is the cron for legacy? but were using the newbackup system. A few days ago we edited the backup cron job from WHM ( we would normally use CLI) to alter the time by 2 hours but we now see it changed the time for the legacy backup not the cron for new /usr/local/cpanel/bin/backup so it maybe a bug?
 
Last edited:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,260
463
I don't believe the legacy backup script (/scripts/cpbackup) is responsible for this issue if you have them disabled. Do you notice any errors in the backup logs located in /usr/local/cpanel/logs/cpbackup for the date the warning message was sent out? Also, have you reproduced the issue since then?

Thank you.
 

kernow

Well-Known Member
Jul 23, 2004
1,031
62
178
cPanel Access Level
Root Administrator
Hello,
No errors reported today in /usr/local/cpanel/logs/cpbackup
However, from the CLI I just edited the cron for /scripts/cpbackup to start @ 2am. Now, if we look in WHM cron jobs the backup has changed to 2.am which shouldn't have happened as were using the new backup script which uses /usr/local/cpanel/bin/backup and is set for 4am
 
Last edited:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,260
463
The "/usr/local/cpanel/bin/backup" cron job is currently not available in the "Cron Config" plugin page. There are plans to add this in a future build of cPanel, but there is no specific ETA on that at the moment. In the meantime, the workaround is to edit this cron job manually from the command line using the "crontab -e" command.

Thank you.