allow configuring of archive format

This commit is contained in:
Konstantin Gizdov 2020-12-09 17:58:51 +02:00
parent cce04c3648
commit 2b5a5aea46

View File

@ -94,7 +94,11 @@ storage:
# also specify a prefix in the retention section to avoid accidental pruning of # also specify a prefix in the retention section to avoid accidental pruning of
# archives with a different archive name format. And you should also specify a # archives with a different archive name format. And you should also specify a
# prefix in the consistency section as well. # prefix in the consistency section as well.
{% if borg_archive_name_format is defined %}
archive_name_format: '{{ borg_archive_name_format | replace("'", "") }}'
{% else %}
archive_name_format: '{hostname}-{now:%Y-%m-%d-%H%M%S}' archive_name_format: '{hostname}-{now:%Y-%m-%d-%H%M%S}'
{% endif %}
# Bypass Borg error about a repository that has been moved. # Bypass Borg error about a repository that has been moved.
relocated_repo_access_is_ok: {{ borgmatic_relocated_repo_access_is_ok }} relocated_repo_access_is_ok: {{ borgmatic_relocated_repo_access_is_ok }}