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:
@@ -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
|
||||||
|
|||||||
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user