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