PCZero

Well-Known Member
Dec 13, 2003
647
72
178
Earth
Just today I discovered the new back up in WHM. I am trying to set it up and test it (also disabled legacy backup) but I don't see what script the new backup uses. It appears the cpbackup still calls he old version. Can someone please point me in the right direction? Also wil the new back up will we be able to adjust the cron time as we can with the legacy?
 

PCZero

Well-Known Member
Dec 13, 2003
647
72
178
Earth
Does anyone have a clue how this new backup is supposed to work? I run my back ups to an off site FTP. Worked liek a charm in the legacy back up but does not function at all in the new one.

- - - Updated - - -

Basically I JUST want a remote FTP back up (which the legacy system did perfectly) but no dice on the new one.
 

PCZero

Well-Known Member
Dec 13, 2003
647
72
178
Earth
OK I got it figured out far enough to have the backups function yet I have not yet figured out how to set the cron time. Any help?
 

cPanelMichael

Technical Support Community Manager
Staff member
Apr 11, 2011
47,911
2,233
363
cPanel Access Level
DataCenter Provider
Twitter
Hello :)

Yes, the new backup script is located at:

Code:
/usr/local/cpanel/bin/backup
You can edit the time this script runs with a command such as:

Code:
crontab -e
Thank you.
 

PCZero

Well-Known Member
Dec 13, 2003
647
72
178
Earth
Hello :)

Yes, the new backup script is located at:

Code:
/usr/local/cpanel/bin/backup
You can edit the time this script runs with a command such as:

Code:
crontab -e
Thank you.

Thank you Michael. Very helpful. I never had a need to manually edit the crontab before and I was not sure doing so in a WHM/cPanel environment was a good idea. Is this something that will be reset/overridden on a WHM/cPanel update/
 

cPanelMichael

Technical Support Community Manager
Staff member
Apr 11, 2011
47,911
2,233
363
cPanel Access Level
DataCenter Provider
Twitter
That specific cron job will not be overwritten by a cPanel update. If you prefer a visual interface for modifying root cron jobs, you can install the "Cron Config" plugin via:

"WHM Home » cPanel » Manage Plugins"

Thank you.
 

PCZero

Well-Known Member
Dec 13, 2003
647
72
178
Earth
That specific cron job will not be overwritten by a cPanel update. If you prefer a visual interface for modifying root cron jobs, you can install the "Cron Config" plugin via:

"WHM Home » cPanel » Manage Plugins"

Thank you.
Thank you Michael. You have been extremely helpful. I do already have that plug in installed however it only shows two lines. One is for upcp and the other is for cpbackup. I do not see a line specifically for the new back up, just the legacy cpbackup. Any hints on how to proceed?



BTW, flease feel free to share with those you report to that you have helped someone and done an extraordinary job doing so, Sometimes it is a simple direct and clear answer to a question that is best. It allows the person seeking information to get what they need and move on. Thank again. job well done.
 

cPanelMichael

Technical Support Community Manager
Staff member
Apr 11, 2011
47,911
2,233
363
cPanel Access Level
DataCenter Provider
Twitter
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.
 

leonex

Member
Jan 12, 2012
23
1
53
cPanel Access Level
Root Administrator
Hello, i have question about new backup system. I testing this sistem
1. disable legacy backup
2. enable new backup
3. enable account for new backup system in backup > Backup User Selection
4. mkdir /newfolder
5. configure ftp connection to another server and set to enable
6. validate all destionation and it passed
7. run script /usr/local/cpanel/bin/backup
Result is, backup is created but not transfer to ftp server, is locate in /newfolder
Where I went wrong? Sorry for my english ....
 

PCZero

Well-Known Member
Dec 13, 2003
647
72
178
Earth
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.
Yep Michael got that! :) Anyway thanks again for the replies. Your information was not only factual and exact but was presented in a manner that was extremely helpful. It is vastly appreciated...
 

Jonathan More

Active Member
Apr 21, 2011
33
0
56
Hi, I have some problem with new backup. After I enabled it and disabled the old one, I started to get daily reports that backup has failed. Today I tested forcing a backup /usr/local/cpanel/bin/backup and got this warning:

warn [backup] The other backup type is running as evidenced by the existence of: /var/cpanel/backuprunning (Edit: This file has only number 26669 in it)
info [backup] backup is waiting for the other backup to complete

Is this warning from the legacy backup? How could I disable it and get the new version to run?

(Or could this be the rsync problem to outside server, that started some time ago? At the moment, I would be interested only to get local backups working properly.)
 
Last edited:

PCZero

Well-Known Member
Dec 13, 2003
647
72
178
Earth
All of a sudden my backups are messing up. I did notice that this coincides with the first attempt at a monthly back up. Anyway after one or two of my sites are backed up (remote FTP) my FTP site is set to disabled (because of failed validation) in WHM. I even turned off 'disable on fail' but it still flips to disabled and the box gets rechecked.This is veyr odd and I need my FTP backups to work please.
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,578
52
308
cPanel Access Level
Root Administrator
Hi, I have some problem with new backup. After I enabled it and disabled the old one, I started to get daily reports that backup has failed. Today I tested forcing a backup /usr/local/cpanel/bin/backup and got this warning:

warn [backup] The other backup type is running as evidenced by the existence of: /var/cpanel/backuprunning (Edit: This file has only number 26669 in it)
info [backup] backup is waiting for the other backup to complete

Is this warning from the legacy backup? How could I disable it and get the new version to run?

(Or could this be the rsync problem to outside server, that started some time ago? At the moment, I would be interested only to get local backups working properly.)
/var/cpanel/backuprunning contains the process ID for one of the backup processes. In your case, since the new backup system is reporting, it would contain the process ID for the legacy backup system (cpbackup). You can verify whether that process indeed is running with a command like:
Code:
ps aux | grep 26669
If no process is returned, then you should be able to safely remove the /var/cpanel/backuprunning file.

If the process terminates abnormally (e.g. someone issued a kill -9 on the process) then it cannot clean up after itself, resulting in things like /var/cpanel/backuprunning remaining on the system.
 

Jonathan More

Active Member
Apr 21, 2011
33
0
56
Thanks, that command returned this:

root 16210 0.0 0.0 103240 840 pts/0 S+ 12:03 0:00 grep 26669
root 26669 0.0 0.2 75912 21176 ? SNs Jun25 0:00 /usr/local/cpan el/scripts/cpbackup

What should I do next?
 

cPanelMichael

Technical Support Community Manager
Staff member
Apr 11, 2011
47,911
2,233
363
cPanel Access Level
DataCenter Provider
Twitter
Thanks, that command returned this:

root 16210 0.0 0.0 103240 840 pts/0 S+ 12:03 0:00 grep 26669
root 26669 0.0 0.2 75912 21176 ? SNs Jun25 0:00 /usr/local/cpan el/scripts/cpbackup

What should I do next?
That indicates the legacy backup process is running. You can search for and review it's associated backup log file in the following directory:

/usr/local/cpanel/logs/cpbackup/

Check to see if the process is still active or generating backups per the log file. If it's just hanging, you can manually kill the legacy backup process.

Thank you.
 

chalupa

Member
Jul 15, 2014
12
0
1
cPanel Access Level
DataCenter Provider
That indicates the legacy backup process is running. You can search for and review it's associated backup log file in the following directory:

/usr/local/cpanel/logs/cpbackup/

Check to see if the process is still active or generating backups per the log file. If it's just hanging, you can manually kill the legacy backup process.

Thank you.
Sorry to hijack thread, but any tips on where to look if the PID is not found but the file is still there? The time stamp is from this morning when the backup fired so It's not an old process and the box has been up for over a month so it's not a server crash that caused it.
 

cPanelMichael

Technical Support Community Manager
Staff member
Apr 11, 2011
47,911
2,233
363
cPanel Access Level
DataCenter Provider
Twitter
Sorry to hijack thread, but any tips on where to look if the PID is not found but the file is still there? The time stamp is from this morning when the backup fired so It's not an old process and the box has been up for over a month so it's not a server crash that caused it.
Could you elaborate on what specific file you are referring to?

Thank you.