PDA

View Full Version : [Cpanel] Modified cpbackup


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

Peter
06-09-2010, 11:02 PM
Very nice Mike. Thanks for taking the time to present this to the community!

Cheers!
Peter

Sunbum
06-09-2010, 11:17 PM
My pleasure.

I did it about a year ago and it has saved my bacon 3 times already.

With the cheap "unlimited" file space from hostgator (NOT FOR HOSTING ILANCE) you can keep hundreds of daily backups and years of full backups :) It's like $5 a month or less. I use them just for the ftp space.

I do prune it a couple times a month just so I don't waste their disk space just because I can ;)

Hey, I noticed my title is "Senior Enthusiast" ... is that at all related to "Age: 50"? :D LOL

Mike "The Fossil"

jgalileolopez
06-30-2010, 02:02 PM
Hey Peter, will you be approving Sunbum's attachments so the community can use this mod?

Peter
06-30-2010, 05:37 PM
Sorry, wasn't aware attachments were under moderation in this forum..

jgalileolopez
06-30-2010, 09:17 PM
Thanks Peter