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

@@ -231,7 +231,7 @@ storage:
# pruning/checking of archives with different archive name
# formats.
# 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.
# Defaults to false.