Sunbum
06-09-2010, 09:58 PM
Hey all,
I am attaching a modded version of /scripts/cpbackup for those that would like to use it as I spent quite a bit of time to get it just right.
This lets you use the Cpanel backup to do daily backups of your Cpanel hosted site and remote FTP the files to the server of your choice.
Please see the documentation for FTP cpanel backups as that is beyond the scope here : http://docs.cpanel.net/twiki/bin/view/AllDocumentation/WHMDocs/ConfigBackup
The script is modified to put backups in the format of :
"backup-MMDDYYYY_cpanelsitename.tar.gz" .
This makes it ready for Cpanel restore.
Files are put in the folder "/backups/" with subfolders for
Daily, Weekly and Monthly
Be sure to "type chattr +i /scripts/cpbackup" to lock this version or it
will get overwritten when Cpanel does an update.
If you need to replace it, you will need to do a "type chattr -i /scripts/cpbackup" before you can alter or remove it.
Enjoy!
Mike
I am attaching a modded version of /scripts/cpbackup for those that would like to use it as I spent quite a bit of time to get it just right.
This lets you use the Cpanel backup to do daily backups of your Cpanel hosted site and remote FTP the files to the server of your choice.
Please see the documentation for FTP cpanel backups as that is beyond the scope here : http://docs.cpanel.net/twiki/bin/view/AllDocumentation/WHMDocs/ConfigBackup
The script is modified to put backups in the format of :
"backup-MMDDYYYY_cpanelsitename.tar.gz" .
This makes it ready for Cpanel restore.
Files are put in the folder "/backups/" with subfolders for
Daily, Weekly and Monthly
Be sure to "type chattr +i /scripts/cpbackup" to lock this version or it
will get overwritten when Cpanel does an update.
If you need to replace it, you will need to do a "type chattr -i /scripts/cpbackup" before you can alter or remove it.
Enjoy!
Mike