feat(backup): Add restic backup
Restic backup creates a snapper snapshot of the root system which it then chroots into and starts a restic backup to a (wasabi) S3 bucket to. Intended to roughly follow this <https://codeberg.org/silmaril/my-restic-solution> solution to achieve restic backup of the _newest_ snapshot of my live root system.
This commit is contained in:
parent
2400bbf1af
commit
19162e2af3
6 changed files with 131 additions and 1 deletions
9
roles/backup/templates/restic.conf.j2
Normal file
9
roles/backup/templates/restic.conf.j2
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
RESTIC_REPOSITORY='{{ restic_repository }}'
|
||||
AWS_ACCESS_KEY_ID='{{ restic_s3_id }}'
|
||||
AWS_SECRET_ACCESS_KEY='{{ restic_s3_key }}'
|
||||
RESTIC_PASSWORD='{{ restic_password }}'
|
||||
RESTIC_CACHE_DIR=/var/tmp
|
||||
DAILY={{ restic_daily }}
|
||||
WEEKLY={{ restic_weekly }}
|
||||
MONTHLY={{ restic_monthly }}
|
||||
YEARLY={{ restic_yearly }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue