Backup Scripts

Backing up data is something that everyone says you should do but nobody gets around to it until it's too late. I learned the hard way when some water got spilled on my computer and reverse-electroplated some copper off of the hard drive PCB, rendering it useless. Fortunately, I had some backups, but not everything was backed up. These scripts are tried and true, and I use them very often to keep my data secure. The first script can be set up in maybe 10 minutes, tops. The second one takes a bit longer, but produces an encrypted backup for security.

Grab these scripts and get your data secure today!

Full system rsync

This script will perform a full system backup with rsync, leaving out /dev and /tmp and what not.

Full system rsync

Encrypted full system rsync

This script will perform a full system backup with rsync through a reverse encfs. Filenames unfortunately cannot be encrypted.

Full system rsync

MySQL backup to disk

This script wraps mysqldump to efficiently back up and compress multiple databases to flat files. Useful for backing up website databases with the above scripts.

MySQL backup to disk