borgmatic: fix config
This commit is contained in:
parent
012c448c73
commit
b7dc26cc27
@ -52,7 +52,6 @@ BORG_PASSPHRASE= {{.Data.data.passphrase}}
|
||||
}
|
||||
template {
|
||||
data= <<EOH
|
||||
location:
|
||||
# List of source directories to backup (required). Globs and
|
||||
# tildes are expanded. Do not backslash spaces in path names.
|
||||
source_directories:
|
||||
@ -63,17 +62,14 @@ location:
|
||||
- /exports/photo
|
||||
|
||||
repositories:
|
||||
- u304977@u304977.your-storagebox.de:{{if eq "production" (env "meta.env") }}backup_hamelab{{else}}backup_homelab_dev{{end}}
|
||||
- path: ssh://u304977@u304977.your-storagebox.de/./{{if eq "production" (env "meta.env") }}backup_hamelab{{else}}backup_homelab_dev{{end}}
|
||||
label: {{if eq "production" (env "meta.env") }}backup_hamelab{{else}}backup_homelab_dev{{end}}
|
||||
|
||||
exclude_patterns:
|
||||
- '*/nomad/jellyfin/cache'
|
||||
- '*/loki/chunks'
|
||||
# - /home/*/.cache
|
||||
# - '*/.vim*.tmp'
|
||||
# - /etc/ssl
|
||||
# - /home/user/path with spaces
|
||||
|
||||
storage:
|
||||
match_archives: '*'
|
||||
archive_name_format: '{{ env "node.datacenter" }}-{now:%Y-%m-%dT%H:%M:%S.%f}'
|
||||
extra_borg_options:
|
||||
# Extra command-line options to pass to "borg init".
|
||||
# init: --extra-option
|
||||
@ -90,7 +86,6 @@ storage:
|
||||
# Extra command-line options to pass to "borg check".
|
||||
# check: --extra-option
|
||||
|
||||
retention:
|
||||
# Keep all archives within this time interval.
|
||||
# keep_within: 3H
|
||||
|
||||
@ -115,9 +110,8 @@ retention:
|
||||
# Number of yearly archives to keep.
|
||||
# keep_yearly: 1
|
||||
|
||||
consistency:
|
||||
checks:
|
||||
- repository
|
||||
- name: repository
|
||||
# - archives
|
||||
# check_repositories:
|
||||
# - user@backupserver:sourcehostname.borg
|
||||
@ -125,7 +119,6 @@ consistency:
|
||||
# output:
|
||||
# color: false
|
||||
|
||||
# hooks:
|
||||
# List of one or more shell commands or scripts to execute
|
||||
# before creating a backup, run once per configuration file.
|
||||
# before_backup:
|
||||
|
Loading…
Reference in New Issue
Block a user