this is forked from https://github.com/joltcan/backup-restic
Bash wrapper for restic on OSX
The config file is stored at ~/.config/restic-vars. Run backup-restic.sh once and it will tell you what is needed.
- Initialise: run the script once, then it will till you what to add to the vars file
- Run
backup-restic init
to initiate the repository - To manually backup,
backup-restic backup
- make executable run
chmod +x backup-restic.sh
- link:
ln -l backup-restic.sh /usr/local/bin/backup-restic
Add to your crontab, like so:
@daily /usr/local/bin/backup-restic backup >/dev/null 2>&1