Manually initiate backup with Amazon S3

tribulant

Member
Mar 3, 2014
12
1
3
cPanel Access Level
Website Owner
Good day,

I installed the CURRENT release 11.42 which has the Amazon S3 destination feature for backups.

How can I manually initiate a backup to /backups and also to Amazon S3 instead of waiting?
I just want to test it to ensure it works to have peace of mind.

Thank you for your assistance.
 

tribulant

Member
Mar 3, 2014
12
1
3
cPanel Access Level
Website Owner
I believe this command would force backups to run:

Code:
/usr/local/cpanel/bin/backup --force
Thanks, I'll try it out.

Is this for the new backup system or the legacy backup system?

All commands I found in the documentation and online keep telling me that the legacy backup system is disabled. That's the idea... I want to use the new backup system with Amazon S3 destination in version 11.42
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
Yes, you can force a generation of backups with the new backup system via:

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

The legacy backup system uses:

/usr/local/cpanel/scripts/cpbackup

Thank you.
 

tribulant

Member
Mar 3, 2014
12
1
3
cPanel Access Level
Website Owner
Yes, you can force a generation of backups with the new backup system via:

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

The legacy backup system uses:

/usr/local/cpanel/scripts/cpbackup

Thank you.
Excellent, thank you very much!
This was very useful and I'm sure that others will find it useful too.
 

luminary

Registered
Jun 20, 2014
2
1
3
cPanel Access Level
Root Administrator
Yes, you can force a generation of backups with the new backup system via:

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

The legacy backup system uses:

/usr/local/cpanel/scripts/cpbackup

Thank you.
When I did this, I received the following error in the log file:

Code:
/bin/gtar: /var/cpanel: file changed as we read it
[backup] Failed to perform full backup of /var/cpanel/ to /backup/2014-11-10/system/dirs/_var_cpanel.tar.gz
Is this only because it was a forced backup? Will a regularly scheduled backup work?
 
Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
It failed due to the following message:

/bin/gtar: /var/cpanel: file changed as we read it
The /var/cpanel directory or it's contents changed as it was read. It's likely a rare occurrence for that to happen, but monitor your backup logs in /usr/local/cpanel/logs/cpbackup to see if it continues to occur.

Thank you.