- python3
- restic
Create a restic repository as described in their documentation.
The script uses SFTP so in my case the command looks like this:
restic -r sftp:<myserver>:/srv/restic-repo init
For my credentials i use a separate file 'credentials.py' located in the same directory as the backup-script.
The file contains the following variables:
- RESTIC_REPOSITORY
- RESTIC_PASSWORD
- ATHQ_SECRET_TOKEN (optional for awesome monitoring created by FAUSheppy
- ATHQ_SERVICE
For example as crontab entry:
0 3 * * * /PATH/TO/backup.py --backup