Home Backups

/, General/Home Backups

Home Backups

I just setup some bash scripts leveraging rsync and triggered via cron to not only keep my external hard-drives backed up to their relative backups, but also to keep my wife’s laptop (MacBook) backed up to an external drive attached to my desktop (PowerMac).

/usr/bin/backup:
#!/bin/bash
rsync /Users/emma/ -avz -e ssh '[email protected]:/Volumes/MBP\ Backup/tongari/Users/emma/'
rsync /Applications/ -avz -e ssh '[email protected]:/Volumes/MBP\ Backup/tongari/Applications/'

/etc/crontab
# minute hour mday month wday who command
30 5 * * * emma /bin/bash /usr/bin/backup

And with ssh keys setup correctly, it should just work.

By |2007-06-21T21:20:28+00:00June 21st, 2007|Apple, General|0 Comments

About the Author:

Devon is a husband, amateur photographer, avid reader, and motorcycle enthusiast.

Leave A Comment