rsnapshot will take snapshots of any folders you specify. The default config file uses these most recent intervals:
- 48 hourly
- 15 daily
- 4 weekly
- 5 monthly
- Install rsnapshot
- Setup rsnapshot
- Create background services
- Run background services
Runs all services under the user (not root)
- Create a backup partition using
Disk Utility
brew install rsnapshot
cp /usr/local/Cellar/rsnapshot/<VERSION>/etc/rsnapshot.conf.default /usr/local/Cellar/rsnapshot/<VERSION>/etc/rsnapshot.conf
- Edit the
rsnapshot.conf
file- Simple setup: copy the sample file
- line 23: set backup location
snapshot_root /Volumes/TimeMachine/backups # UPDATE ME
- line 127: set the
<USER>
value - line 226: set what to backup
backup /Users/<USER>/CODE/ localhost/ #UPDATE ME
- line 23: set backup location
- Simple setup: copy the sample file
- test the config file with
rsnapshot configtest
- fake snapshot with
rsnapshot -t hourly
- run your first snapshot with
rsnapshot hourly
and make sure no errors arise
- copy
com.maximusmccann.rsnapshot.hourly.plist
to/Library/LaunchAgents/
- copy
com.maximusmccann.rsnapshot.daily.plist
to/Library/LaunchAgents/
- copy
com.maximusmccann.rsnapshot.weekly.plist
to/Library/LaunchAgents/
- copy
com.maximusmccann.rsnapshot.monthly.plist
to/Library/LaunchAgents/
- run
launchctl load com.maximusmccann.rsnapshot.hourly.plist
- run
launchctl load com.maximusmccann.rsnapshot.daily.plist
- run
launchctl load com.maximusmccann.rsnapshot.weekly.plist
- run
launchctl load com.maximusmccann.rsnapshot.monthly.plist
- To disable:
launchctl unload com.maximusmccann.rsnapshot.*.plist