MattW
Well-known member
MattW submitted a new resource:
Auto Database Backup Script (version 1.0) - Export and Upload your Database to Offsite location with Cron
Read more about this resource...
Auto Database Backup Script (version 1.0) - Export and Upload your Database to Offsite location with Cron
These are 2 scripts I wrote to automate the nightly backup of my databases and upload them to a remote location via FTP.
There is a bash script that you call from cron at a time of your choice. This uses mysqldump to make a copy of your database, compress is using pbzip2 (adjust to bzip2 or gzip if you don't have pbzip2 installed), and then calls the upload.pl script to upload the file via FTP to the remote site (keeping 5 rolling days worth of...
Read more about this resource...