borgmatic config.yaml - set the archive label meaningfully

Currently {hostname} expands to an anonymous number. Set this part of
the archive name to something we can recognise.
This commit is contained in:
Nick Stokoe
2023-04-06 16:43:02 +01:00
parent fe9f3d9bdd
commit 68b73990b4
2 changed files with 2 additions and 1 deletions

View File

@@ -242,6 +242,7 @@ services:
POSTGRES_DB: nextcloud POSTGRES_DB: nextcloud
POSTGRES_HOST: postgres POSTGRES_HOST: postgres
BORG_ARCHIVE: nick BORG_ARCHIVE: nick
BORG_ARCHIVE_LABEL: snackpot
MAIL_RELAY_HOST: mail.noodlefactory.co.uk MAIL_RELAY_HOST: mail.noodlefactory.co.uk
MAIL_PORT: 25 MAIL_PORT: 25
MAIL_AUTH_METHOD: login MAIL_AUTH_METHOD: login

View File

@@ -231,7 +231,7 @@ storage:
# pruning/checking of archives with different archive name # pruning/checking of archives with different archive name
# formats. # formats.
# archive_name_format: '{hostname}-documents-{now}' # archive_name_format: '{hostname}-documents-{now}'
archive_name_format: '{hostname}-{now:%Y-%m-%dT%H:%M:%S.%f}' archive_name_format: "${BORG_ARCHIVE_LABEL}-{now:%Y-%m-%dT%H:%M:%S.%f}"
# Bypass Borg error about a repository that has been moved. # Bypass Borg error about a repository that has been moved.
# Defaults to false. # Defaults to false.