Command line utility to send a snapshot of $HOME
to offsite storage using restic on an hourly basis.
- Install restic with
brew install restic
- Copy ./bin/restic-snapshot to
$HOME/.local/bin
- Copy ./etc/restic-snapshot.excludes to
$HOME/.local/etc
- Copy ./LaunchAgents/com.mattolson.restic-snapshot.plist to
$HOME/Library/LaunchAgents
and update values as appropriate for your environment (all the placeholders that start with$
) - Run
launchctl load -w ~/Library/LaunchAgents/com.mattolson.restic-snapshot.plist
to install the LaunchAgent - Go into your System Settings -> Privacy & Security -> Full Disk Access and add
/bin/bash
and/opt/homebrew/bin/restic