Home Backups

Home/Apple, General/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 'modoc@andromeda.local:/Volumes/MBP\ Backup/tongari/Users/emma/'
rsync /Applications/ -avz -e ssh 'modoc@andromeda.local:/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 | 2017-05-18T15:19:11+00:00 June 21st, 2007|Apple, General|0 Comments

About the Author:

Leave A Comment