cloudserve-infrastructure/roles/restic
Marty Oehme 7543170f75
chore(restic): By default run check every Sunday night
And check a larger subset of the data with 15%.
2025-02-03 21:36:18 +01:00
..
defaults chore(restic): By default run check every Sunday night 2025-02-03 21:36:18 +01:00
meta chore(restic): Do not require caddy id for the role 2025-02-03 21:35:44 +01:00
tasks feat(restic): Add restic backup maintenance stack 2025-02-03 18:45:33 +01:00
templates fix(restic): Fix docker stack environment variables 2025-02-03 21:35:25 +01:00
vars feat(restic): Add restic backup maintenance stack 2025-02-03 18:45:33 +01:00
README.md feat(restic): Add restic backup maintenance stack 2025-02-03 18:45:33 +01:00

restic

Backup maintenance stack.

Takes care of regularly pruning the backup repository and checking its integrity. Currently only supports S3 as a backend.

Defaults

restic_timezone: US/Chicago

The timezone to be used for the cronjob.

restic_version: latest

The docker image version to be used in stack creation.

restic_repo: s3.eu-central-1.wasabisys.com/myrepo
restic_pass: <restic-pass>

The repository url and the restic repository password. See the restic documentation for more information.

restic_s3_key: <s3-key>
restic_s3_secret: <s3-secret>

The restic S3 credentials, i.e. the AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY.

restic_prune_cron: 0 0 4 * * *
restic_forget_args: --prune --keep-last 14 --keep-daily 2 --keep-weekly 2

The default prune and forget cronjob schedule and arguments: Prune the repository every day at 4:00 AM and keep the last 14 snapshots, 2 daily snapshots and 2 weekly snapshots.

restic_check_cron: 0 15 5 * * *
restic_check_args: --read-data-subset=5%

The default check cronjob schedule and arguments: Check the repository integrity every day at 5:15 AM and in addition to structural checks, read 5 randomly chosen % for a data integrity check.