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:
Marty Oehme 2025-02-28 21:40:02 +01:00
parent 2400bbf1af
commit 19162e2af3
Signed by: Marty
GPG key ID: 4E535BC19C61886E
6 changed files with 131 additions and 1 deletions

View 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 }}