Add borg repo label

This commit is contained in:
akul 2025-08-11 09:34:35 +04:00
parent 80720c23b2
commit 525bcda249
2 changed files with 10 additions and 0 deletions

View File

@ -67,6 +67,10 @@ argument_specs:
Your own server or [BorgBase.com](https://www.borgbase.com) repo.
Not required when using auto creation of repositories.
Can be a list if you want to backup to multiple repositories.
borg_repository_label:
type: str
required: false
description: Label for the repository.
borgmatic_store_atime:
type: bool
required: false

View File

@ -19,9 +19,15 @@ repositories:
{% if borg_repository is iterable and (borg_repository is not string and borg_repository is not mapping) %}
{% for repo in borg_repository %}
- path: {{ repo }}
{% if borg_repository_label is defined and borg_repository_label is string %}
label: {{ borg_repository_label }}
{% endif %}
{% endfor %}
{% elif borg_repository is defined and borg_repository is string %}
- path: {{ borg_repository }}
{% if borg_repository_label is defined and borg_repository_label is string %}
label: {{ borg_repository_label }}
{% endif %}
{% endif %}
# Store atime into archive.