Here is a program to make automatic backups of your web directory and all mysql databases with security and ease of use in mind.
All backups are compressed and encrypted with des3
To make a backup
To restore web server to previous point
To decrypt a file
dcrypt [filename].crypt [output]
Extract and run install.sh with sudo
Follow the prompts to change the default values and choose option 1 when ready to install.
tar -xvzf ebackup.tar.gz
chmod +x install.sh
To make automatic nightly backups at midnight add the following to cron
This program will automatically generate a long password to encrypt/decrypt your files and store it as /root/backuppw.txt
0 0 * * * /bin/backup
Make a local backup of this file, as all backups made after installation will be encrypted with this password.