Problems with backup system
I just switched from legacy to this new backups and faced many problems. Backups were not done, neither when I selected this all users for this new backup system. Forced backup did the trick but again, backup is not processing as set by specific days in backup configuration via WHM.
I tried to change cron hours but it seems that cron setting via WHM is not affecting this new backup system.
So my question is how can I controll cron times for this new backup as now it seems my backup is not running at all unless I force it to run?
I have latest stable cPanel/WHM
-
Hello :) 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. 0 -
I use Backup Configuration and not legacy on ours, set the cron to run at 2am which works great on all of them. except on keeps doing them at 5pm and not sure why. 0 -
[quote="popeye, post: 1536901">I use Backup Configuration and not legacy on ours, set the cron to run at 2am which works great on all of them. except on keeps doing them at 5pm and not sure why.
Please post the output of the following command:crontab -l|grep backup
Thank you.0 -
0 2 * * * /usr/local/cpanel/bin/backup 0 23 * * * /usr/local/cpanel/scripts/cpbackup 0 -
I don't see why it would start generating at 5PM if your cron job states it should start at 2AM. Are you sure your system time lines up with the local time you are using? Thank you. 0 -
.vB 0 2 * * * /usr/local/cpanel/bin/backup 0 23 * * * /usr/local/cpanel/scripts/cpbackup That's not showing what i am seeing ? mine says 21 hours 0 -
Hello, The new backup system cron can not yet be modified with the WHM Cron Job setup. It can only be modified from the command line. This is in the works of getting added however. 0 -
[quote="popeye, post: 1537001">19021 0 2 * * * /usr/local/cpanel/bin/backup 0 23 * * * /usr/local/cpanel/scripts/cpbackup That's not showing what i am seeing ? mine says 21 hours
What's the top part of the interface that has been cut off in the image? It should list the service. Note that the new backup system is not included in the "Cron Config" plugin page until cPanel version 11.42. Thank you.0 -
Its just the normal text from whm i made it smaller to put on here. But why do my other cpanel servers run at the time i set ? Can you tell how i can set it then please 0 -
[quote="popeye, post: 1537041">Its just the normal text from whm i made it smaller to put on here. But why do my other cpanel servers run at the time i set ? Can you tell how i can set it then please
For instance, you should not be seeing two backup cron job options under "Cron Config" in WHM. You stated one backup cron job was set at "21" hours, however you did not post the full screen shot of the cron job service name for that setting. Could you post that so we can take a closer look? Thank you.0 -
.vB Hi attached the other is cpanel updates 0 -
The cron job you have configured for to run on the 21st hour is for "upcp", which is the cPanel update process, not for a cPanel backup process. If you want to edit the cron job for the new backup system, you must do so via the command line: crontab -e The cron job to edit is: /usr/local/cpanel/bin/backup Thank you. 0 -
Thanks which part do i edit its a big file with loads of info in 0 -
[quote="popeye, post: 1537072">Thanks which part do i edit its a big file with loads of info in
Edit the entry to the time you want backups to generate on the /usr/local/cpanel/bin/backup line. Thank you.0 -
One more thing . Beside local backup i have set remote FTP backup but this failed with reason: Reason: Transport surpassed error threshhold with "4"" errors I am not sure what is this and why this FTP backup failed. 0 -
[quote="dxer, post: 1537422">One more thing . Beside local backup i have set remote FTP backup but this failed with reason: Reason: Transport surpassed error threshhold with errors I am not sure what is this and why this FTP backup failed.
Check the output of the following log file for any specific failure reasons: /usr/local/cpanel/logs/cpbackup_transporter.log Thank you.0 -
Ok, I found problem. The thing is that for some reason this new backup system is creating folders names as dates when backup is performed. This way backup is actually not overwritten but it is creating new folder with new date, and I didn't have disk space on remote server so backup is aborted and rempote backup is disabled. Now I need to know how to set this new backup to perform backup in just one folder/directory with the same name as I don't need backup to leave previous backups. I need new backup to overwrite previous one on local disk and remote FTP location too. I have set to retain 1 backups daily and 1 monthly but it is clearly retaining more backups as for every backup session it is creating new folder/directory (named as date when performed). 0 -
Additional backups should not be stored if you have backup retention configured to "1". Could you open a support ticket using the link in my signature so we can reproduce this issue? You can post the ticket number here so we can update this thread with the outcome. Thank you. 0 -
I opened ticket 4429717 0 -
Hi i don't understand what you meant ? i know how to find the file but need to know which line i edit ? 0 -
[quote="dxer, post: 1537722">I opened ticket 4429717
To update, here is the response from an analyst on this ticket in regards to the backup retention: cPanel backup will create a new directory based on the current date and then remove old backup directories which exceed the retention time later. This is the safe approach that all backup software should take which ensures that a backup is still available for restoring even if something goes wrong with the new backup. If something fails with the new backup, such as the FTP server running out of space, then cPanel backup prefers to leave things as they were rather than delete potentially important files which can be dangerous. Thank you.0 -
[quote="popeye, post: 1537791">Hi i don't understand what you meant ? i know how to find the file but need to know which line i edit ?
You simply edit the line associated with the cron job you want to modify the time of. Thus, if you want to modify the time that the new backup script runs, edit the numbers on the line that has the /usr/local/cpanel/bin/backup entry. Thank you.0 -
Hi i cant seem to find this in that file, its to full 0 -
Hello, Try typing the following: # crontab -l | grep backup Or paste the output of # crontab -l Here. We can then show you which line it is. 0
Please sign in to leave a comment.
Comments
24 comments