initial commit
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
commit
75891c3271
129 changed files with 8046 additions and 0 deletions
29
roles/restic/defaults/main.yml
Normal file
29
roles/restic/defaults/main.yml
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
restic_backend_type: "sftp"
|
||||
restic_password: ""
|
||||
# restic_repo: set explicitly when restic_backend_type is not 'sftp'
|
||||
|
||||
restic_backup_paths: >-
|
||||
{{
|
||||
['/etc/letsencrypt', '/srv/caddy']
|
||||
+ (['/etc/nebula'] if (enable_nebula | default(false)) else [])
|
||||
+ (['/srv/forgejo'] if (enable_forgejo | default(false)) else [])
|
||||
+ (['/srv/goaccess'] if (enable_goaccess | default(false)) else [])
|
||||
+ (['/srv/mail'] if (enable_mail | default(false)) else [])
|
||||
+ (['/srv/monitoring'] if (enable_monitoring | default(false)) else [])
|
||||
+ (['/srv/tuwunel'] if (enable_tuwunel | default(false)) else [])
|
||||
+ (['/srv/radicale'] if (enable_radicale | default(false)) else [])
|
||||
+ (['/srv/diun'] if (enable_diun | default(false)) else [])
|
||||
}}
|
||||
|
||||
restic_exclude_patterns:
|
||||
- "**/tmp"
|
||||
- "**/cache"
|
||||
- "**/*.gz"
|
||||
|
||||
restic_backup_time: "02:00:00"
|
||||
restic_prune_time: "04:00:00"
|
||||
|
||||
restic_retention:
|
||||
daily: 7
|
||||
weekly: 4
|
||||
monthly: 6
|
||||
Loading…
Add table
Add a link
Reference in a new issue