No description
etc | ||
backup.sh | ||
README.md |
backup.sh
I think I got the base of this backup script from https://blog.bithive.space/post/automatic-backups-with-restic/ (but I'm not 100% sure) This is my extension of that script which serves my purposes. I have added a notification wrapper, some error checking (which still could be improved) and moved a lot of stuff to the env file so that the base script can be run without local changes getting overwitten
Running it
Eventually I will probably formalize this documentation a bit better, but the quick version is:
- mkdir /etc/restic
- copy the backup.sh to /etc/restic
- copy the env to /etc/restic
- modify the env to suit your needs
- setup the systemd timer stuff
- copy the etc/systemd/system/restic-backup.* files to /etc/systemd/system
systemctl daemon-reload
systemctl enable --now restic-backup.timer