borgmatic: fix config

This commit is contained in:
vincent 2024-03-02 10:34:44 +01:00
parent 012c448c73
commit b7dc26cc27

View File

@ -52,29 +52,25 @@ 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:
- /exports/ebook - /exports/ebook
- /exports/homes - /exports/homes
- /exports/music - /exports/music
- /exports/nomad - /exports/nomad
- /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 extra_borg_options:
# - /home/user/path with spaces
storage:
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,34 +86,32 @@ 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
# Number of secondly archives to keep. # Number of secondly archives to keep.
# keep_secondly: 60 # keep_secondly: 60
# Number of minutely archives to keep. # Number of minutely archives to keep.
# keep_minutely: 60 # keep_minutely: 60
# Number of hourly archives to keep. # Number of hourly archives to keep.
# keep_hourly: 24 # keep_hourly: 24
# Number of daily archives to keep. # Number of daily archives to keep.
keep_daily: 7 keep_daily: 7
# Number of weekly archives to keep. # Number of weekly archives to keep.
keep_weekly: 4 keep_weekly: 4
# Number of monthly archives to keep. # Number of monthly archives to keep.
# keep_monthly: 6 # keep_monthly: 6
# Number of yearly archives to keep. # Number of yearly archives to keep.
# keep_yearly: 1 # keep_yearly: 1
consistency: checks:
checks: - name: repository
- 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: