Shell script to Back up critical files (using RSYNC)

Published: | by Julian Knight Reading time ~1 min.
📖 Posts | 📎 Development, Linux | 🔖 Backup, BASH, Batch, Scripting

Following up from my article on backing up USB drives, this recipe backs up the critical files on my desktop to remote storage (a NAS device on my network). Note that PC2 is the desktop to be backed up, SLUG1 (192.168.1.2) is the NAS device and USER1 is the user id doing the backup.

I have a similar script that runs on the NAS device which backs key files on that to a remote hosting service on a different continent! That way, I don’t have to worry about the house burning down or being burgled.


comments powered by Disqus