Requirements
- This guideline requires ssh without password (see earlier post on the blog).
Limitations
- The backup method used in this guideline is a mirrored copy of the original data. This means that backups will be replaced by the original data. You will only be able to roll back to the latest version of the data. This will ensure your data if your harddrive fails or if your Mac is stolen. It will not help you if for instance you delete sections in a document and want to revert to an older version. Check the links below for some hints on how to create incremental backups using rsync.
Guideline
- Download and extract the folder backup in /Applications
- Edit the top of /Applications/backup/scripts/backup.sh. Change to your own username, server IP and set the directory where the backup should be placed (create this directory on the server).
- Configure what directories shouldn't be backed up by editing the file /Applications/backup/scripts/exclude
- In the file /Applications/backup/launchd/com.skyandyou.tools.clientbackup.plist you can set the delay between backup's (default is 3 hours)
- Copy /Applications/backup/launchd/com.skyandyou.tools.clientbackup.plist to /Users/username/Library/LaunchAgents
- Restart your Mac
- Test the backup by executing:
launchctl start com.skyandyou.tools.clientbackup - Watch the log output:
tail -f /var/log/system.log
Using excludes in rsync
Incremental backups using rsync
Mac backup howto