Awesome
time-travel
An rsync based backup script which only transfers modified files. Smooth integration into OSX Notification Center. It relies mainly on a script named rsync-time-backup by laurent22 and terminal-notifier by julienXX. This script combines the powerful backup capabilites of rsync-time-backup with the notification features of terminal-notifier to provide a simple backup alternative to Apple's Time Machine.
Installation
git clone https://github.com/joekerna/time-travel
Destination directory has to contain empty file named backup.marker.
touch <DESTINATION>/backup.marker
Usage
time-travel.sh <SOURCE> <[USER@HOST:]DESTINATION> [exclude-pattern-file]
Backup strategy
Every time the script runs it creates a new backup. Only modified data is transferred, all unchanged data is hard linked to the previous backup and does not use up space on the backup drive.
You can safely delete any backup folder by hand if you like.
Previous backups are eventually deleted. Based on the following strategy backups are kept
- Within the last 24 hours: all
- Within the last 31 days: The last of each day
- Older than 31 days: The last of each month