mirror of
https://github.com/borgbase/ansible-role-borgbackup.git
synced 2025-09-17 17:53:06 +02:00
Add borg repo label
This commit is contained in:
parent
80720c23b2
commit
525bcda249
@ -67,6 +67,10 @@ argument_specs:
|
|||||||
Your own server or [BorgBase.com](https://www.borgbase.com) repo.
|
Your own server or [BorgBase.com](https://www.borgbase.com) repo.
|
||||||
Not required when using auto creation of repositories.
|
Not required when using auto creation of repositories.
|
||||||
Can be a list if you want to backup to multiple 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:
|
borgmatic_store_atime:
|
||||||
type: bool
|
type: bool
|
||||||
required: false
|
required: false
|
||||||
|
@ -19,9 +19,15 @@ repositories:
|
|||||||
{% if borg_repository is iterable and (borg_repository is not string and borg_repository is not mapping) %}
|
{% if borg_repository is iterable and (borg_repository is not string and borg_repository is not mapping) %}
|
||||||
{% for repo in borg_repository %}
|
{% for repo in borg_repository %}
|
||||||
- path: {{ repo }}
|
- path: {{ repo }}
|
||||||
|
{% if borg_repository_label is defined and borg_repository_label is string %}
|
||||||
|
label: {{ borg_repository_label }}
|
||||||
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% elif borg_repository is defined and borg_repository is string %}
|
{% elif borg_repository is defined and borg_repository is string %}
|
||||||
- path: {{ borg_repository }}
|
- path: {{ borg_repository }}
|
||||||
|
{% if borg_repository_label is defined and borg_repository_label is string %}
|
||||||
|
label: {{ borg_repository_label }}
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
# Store atime into archive.
|
# Store atime into archive.
|
||||||
|
Loading…
Reference in New Issue
Block a user