|
Backup
This script will backup filesystems and MySQL databases onto a backup server (NAS). You can define many backup jobs to be done in each run, and get smaller jobs to run concurrently in their own threads. The backup will create a snapshot of the current filesystem, and save historical changes into 'changed' directories. You'll also get an informative email report at the end of the job with any errors highlighted.
The backups can be simultaneous (running in a separate thread) or consecutive. The consecutive threads will run once all the threaded backups are complete.
You will need to run a rsync or mysql server on the server that you are trying to back up. With rsync, you can get the backup to use ssh instead, but you will need to put the backup server's public key into the target server's authorized_keys file so there will be a passwordless connection.
The application requires the following Perl modules:
Config::General; Data::Dumper; File::Rsync; File::Find; threads; threads::shared; Mail::Sendmail;
More information is available in the tarball.
Download backup.tar.bz2 (6KB) tarball.
Although this application has been well tested, I still take no responsibility for any problems or damages that happen if you use it. Use it at your own risk.
|
|