Made because I hate doing this manually
- SSH access
pigz
orpbzip2
installed (if you want to use the faster, multi-core compression methods)- An Amazon S3 account (and
s3put
installed) if you want to sync your SQL backups with AWS - A little experience with the Linux shell environment
- Download
backup_script.sh
from the repo - Save the backup script somewhere you'll remember. For example
/home/backups
- Make it executable with
chmod +x backup_script.sh
- Fill out the config variables (see below)
- Add a crontab entry to run every night at a time when your site is likely to be less busy. Something like this will do:
0 3 * * * /home/backups/backup_script.sh
(this will run at 3am every night)
db_username
- The username for your SQL databasedb_password
- The passsword for your SQL databasedb_name
- The name of your databasecompression_method
- The compression executable that will be run. Choose betweenpigz
,pbzip2
orgzip
backup_path
- The location you want your backup files savedweb_dir
- The location of your xenForo installationbucket_name
(optional) - The Amazon S3 bucket name and directory in which to sync the SQL backups