feat(restic): Add restic backup maintenance stack

Sets up regular backup maintenance for a restic (S3) backend, and
enables global variables for other roles to use for their individual
backup. Example found in nextcloud role.
This commit is contained in:
Marty Oehme 2025-02-03 18:45:22 +01:00
parent eaeeb4ed6c
commit 135aadf3a0
Signed by: Marty
GPG key ID: EDBF2ED917B2EF6A
8 changed files with 139 additions and 19 deletions

View file

@ -18,6 +18,10 @@ nextcloud_redis_password: myredispass
nextcloud_db_username: nextcloud
nextcloud_db_password: secretnextcloud
# run restic backups
nextcloud_backup_enable: false
nextcloud_backup_cron: 0 30 3 * * *
nextcloud_php_memory_limit: 5G # maximum ram php may use
nextcloud_php_upload_limit: 15G # maximum size of (web) uploaded files
@ -42,9 +46,3 @@ nextcloud_smtp_from_domain: "{{ server_domain }}"
# nextcloud_s3_ssl: true
# nextcloud_s3_region: eu-central-1
# nextcloud_s3_usepath_style: true
nextcloud_backup_db_enable: false
# nextcloud_backup_db_repo: s3.eu-central-1.wasabisys.com/myrepo
# nextcloud_backup_db_key: <s3-key>
# nextcloud_backup_db_secret: <s3-secret>
# nextcloud_backup_db_timezone: US/Chicago