whm whole server backups

crshep

Well-Known Member
Sep 26, 2006
114
8
168
For some reason I am having some trouble with backups. I have made no changes but backups stopped from server to server. But when I turned off both firewalls in each server the backups started working again VERY SLOWLY but did start again. Now and then I have to go in and turn off backups of some accounts because I don't do backups of accounts larger then 1GB in size. But I noticed when looking there are 2 different backup buttons to choose from.

Legacy Backups

I see no rhyme or reason here some have both turned on and some of "Legacy on" and "Backups off" and some the other way around "Legacy off" and "Backups on".

So my question is which way should it be.....? As in which one is off and on. Also what could make it backup so slow now? Used to backup (Before the firewalls stopped it from working about 2 weeks ago) 500 sites or so about 8-10 hours (about 30gb) not it is taking close to 40 hours for half that amount and it is still running as I type this)

And why would the CSF firewall all of a sudden stop the backups between the 2 VPS. It seemed to start this right after the cpanel update last time. Do I need to allow a different port or something? I hate leaving the firewalls off just to be able to do backups since I do them weekly.

Anyway thanks for any help
 

cPanelMichael

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

I suggest using only the new backup system and disabling the legacy backup system unless you have some particular reason to use legacy backups. As far as your firewall, check to ensure the passive FTP port range is allowed if you are using FTP to transfer backups to a remote destination.

Thank you.
 

crshep

Well-Known Member
Sep 26, 2006
114
8
168
Hello :)

I suggest using only the new backup system and disabling the legacy backup system unless you have some particular reason to use legacy backups. As far as your firewall, check to ensure the passive FTP port range is allowed if you are using FTP to transfer backups to a remote destination.

Thank you.
Ok so I should have backup on and legacy off? How would I do this for all account or do I need to do this for each account becasue it looks like legacy is default setting.

oh I was able to turn on the firewall of the receiving VPS to get the backups but the sending vps the firewall has to be off to send for some reason now. And yes passive FTP is enabled. Sorry I do not understand "passive FTP port range" where would I find this?

And thanks for the reply
 
Last edited:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
You can select which users are backed up via:

"WHM Home » Backup » Backup User Selection"

You can disable legacy backups via:

"WHM Home » Backup » Legacy Backup Configuration"

Thank you.
 

crshep

Well-Known Member
Sep 26, 2006
114
8
168
Ok I did like you said

---------------
You can select which users are backed up via:

"WHM Home » Backup » Backup User Selection"

You can disable legacy backups via:

"WHM Home » Backup » Legacy Backup Configuration"
----------------------------------------------

Then I ran

/scripts/cpbackup --force

and it failed see below

[email protected] [~]# /scripts/cpbackup --force
[cpbackup] Backup Not Enabled (This can be adjusted in WHM => Backup => Legacy B
ackup Configuration)
[email protected] [~]#

Thanks
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
You ran the wrong command to force a generation of backups. The command for the new backup system is:

Code:
/usr/local/cpanel/bin/backup --force
Thank you.
 

crshep

Well-Known Member
Sep 26, 2006
114
8
168
You ran the wrong command to force a generation of backups. The command for the new backup system is:

Code:
/usr/local/cpanel/bin/backup --force
Thank you.
Oh ok thanks I did a search and everything still showed /scripts/cpbackup --force
anyway thanks and now what is the command to kill (or stop the backups) in SSH.

Thanks
 

crshep

Well-Known Member
Sep 26, 2006
114
8
168
ok now to add to my last post when I click on Backup Restoration in WHM I see no files so how would I see the files and be able to pick which one I need to restore or even how to click all and restore all if need be?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
Please see the following document on restoring backups from remote destinations if your backups are not stored locally:

Remote Restoration

Thank you.
 

crshep

Well-Known Member
Sep 26, 2006
114
8
168
thanks if this starts backup

/usr/local/cpanel/bin/backup --force

What stops it?

Thanks
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
The backup process continues until all accounts have been backed up. You should allow the process to end on it's own, but if you do need to stop the process, you must kill the process ID using the "kill" command.

Thank you.
 

crshep

Well-Known Member
Sep 26, 2006
114
8
168
so like this


/usr/local/cpanel/bin/backup --kill
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
No, you would have to use a command such as "ps auxf" to find the process ID of /usr/local/cpanel/bin/backup and then kill that process and any of it's sub-processes with a command such as:

Code:
kill -9 12345
May I ask why you need to stop the process?

Thank you.
 

crshep

Well-Known Member
Sep 26, 2006
114
8
168
Thanks

just in case server loads get high during backup or if I'm testing the backup and want to start and stop and restart.
 

cPanelPeter

Senior Technical Analyst
Staff member
Sep 23, 2013
576
19
143
cPanel Access Level
Root Administrator
Hello,

Backups should automatically halt if the server load gets too high. You'll then see lines similar to this in your /usr/local/cpanel/logs/cpbackup/xxxxxxxx.log file.

Waiting for load to go down

When the load drops again the backup should then continue.