Skip to content

beekama/restic_backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages