I've seen a great deal of scripts intended for automating full backups but wasn't able to find one that met all my requirements, so I wrote my own. This script rsyncs a full backup anywhere you want. It's user-configurable - the user can decide where to send the backup file to, what email address should be used in case of errors, and if old backup files should be deleted as they age. An RSA key is used for authentication and the user's cPanel password is not required in the config file.
This can be used in a few different ways. Some users like a full backup copied to a remote server periodically. I used to do that, but now I actually prefer to exclude the home directory from the full backup (by way of a single * in cpbackup-exclude.conf). I store the full backup (which is now only a few MB in size) in my home directory and my NAS device rsyncs my home directory to the NAS once per night. My home directory is huge, but most of it doesn't change from day to day. Using rsync obviously requires significantly less bandwidth and server resources.
Here's the script, completely free to use. Bug reports would be welcome, though it's been used successfully for quite some time now.
This can be used in a few different ways. Some users like a full backup copied to a remote server periodically. I used to do that, but now I actually prefer to exclude the home directory from the full backup (by way of a single * in cpbackup-exclude.conf). I store the full backup (which is now only a few MB in size) in my home directory and my NAS device rsyncs my home directory to the NAS once per night. My home directory is huge, but most of it doesn't change from day to day. Using rsync obviously requires significantly less bandwidth and server resources.
Here's the script, completely free to use. Bug reports would be welcome, though it's been used successfully for quite some time now.
Last edited by a moderator: