auto_restic
is a wrapper script for restic, much like restic-runner, but allowing all operations and configurations to be implemented in configuration files. Though it was designed to enable easy cron folder drop-ins, it should also work well with SystemD unit templates and timers.
- Install
restic
. If reports are desired, also installjq
. - Copy
auto_restic
andconfig.env
to the desired locations. - Customize the configuration file as desired.
- Optionally, update the
CONFIG
variable inauto_restic
to allow easier use.
First, initialize the repository. e.g.
bash -c '. /etc/restic/config.env; restic init;'
If the CONFIG
variable in auto_restic
is configured for your configuration file, just run auto_restic
!
If you'd like to specify the configuration file on the command line, you can do so (e.g. auto_restic local.env
).
MIT