differnce-between-legacy-new-cpanel-backup-script

Difference between new and old legacy backup Cpanel script

Difference between new and old legacy backup Cpanel script

Difference between new and old legacy backup Cpanel script
Cpanel introduced the New and Advanced backup script, they are still keeping the old Legacy Backup script.

Many often confuses between this two(New & Legacy) backup scripts.

Some may find difficult in seeing both this scripts are in the cronjob.

root@server # crontab -l
0 1 * * * /usr/local/cpanel/scripts/cpbackup
0 1 * * * /usr/local/cpanel/bin/backup

You can find the documentation for the New Backup System and the Legacy Backup System.

New Backup Documentation URL :
https://documentation.cpanel.net/display/ALD/Backup+Configuration+FAQ
Legacy Backup Documentation URL :
https://documentation.cpanel.net/display/ALD/Legacy+Backups+FAQ

cPanel allows scheduling of this backup and help keep backup of server and accounts.
You also have option to do manually and also by forcing it.
To start the backup manually, First Login to your server by SSH.as root

Rrun following command.

For cPanel new Backup system

/usr/local/cpanel/bin/backup

If the backup is up-to-date, you can force to run backup

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

For the new backup system, You can use this command check if backups are enabled.

grep BACKUPENABLE /var/cpanel/backups/config

For cPanel Legacy backup system

/scripts/cpbackup

If the backup is up-to-date and you wish to run backups anyway, use:

/usr/local/cpanel/scripts/cpbackup --force

You can use this command check if backups are enabled for the legacy backup script:

grep BACKUPENABLE /etc/cpbackup.conf

Comments

This site uses Akismet to reduce spam. Learn how your comment data is processed.