Skip to content

Latest commit

 

History

History
20 lines (20 loc) · 949 Bytes

README.md

File metadata and controls

20 lines (20 loc) · 949 Bytes

Backup using Restic

Prerequisites

  • python3
  • restic

Create Restic Repository

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

Credentials

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

Run

For example as crontab entry:
             0 3 * * * /PATH/TO/backup.py --backup