sync with upstream
This commit is contained in:
parent
0b8bda212c
commit
ca3fc74eba
@ -82,7 +82,7 @@ $ git clone https://github.com/borgbase/ansible-role-borgbackup.git roles/ansibl
|
||||
- `borgmatic_cron_checks_day`: Day when cron job for infrequent checks will run. Defaults to `{{ 28 | random }}`
|
||||
- `borgmatic_cron_checks_hour`: Hour when cron job for infrequent checks will run. Defaults to `{{ range(7, 24) | random }}`
|
||||
- `borgmatic_cron_checks_minute`: Minute when cron job for infrequent checks will run. Defaults to `{{ 59 | random }}`
|
||||
- `borg_archive_name_format`: The format for the archive name, e.g. `{hostname}-{now:%Y-%m-%dT%H:%M:%S.%f}`. Defaults to `{hostname}-{now}`
|
||||
- `borg_archive_name_format`: The format for the archive name, e.g. `{hostname}-{now:%Y-%m-%dT%H:%M:%S.%f}`. Defaults to `{hostname}-{now:%Y-%m-%d-%H%M%S}`
|
||||
- `borg_prune_prefix`: The prefix used to select archives to prune. Defaults to `{hostname}-`
|
||||
- `borg_check_prefix`: The prefix used to select archives to check for consistency. Defaults to `{hostname}-`
|
||||
|
||||
|
@ -44,6 +44,6 @@ borgmatic_cron_checks_day: "{{ range(1, 28) | random(seed=inventory_hostname) }}
|
||||
borgmatic_cron_checks_hour: "{{ range(9, 24) | random(seed=inventory_hostname) }}"
|
||||
borgmatic_cron_checks_minute: "{{ 59 | random(seed=inventory_hostname) }}"
|
||||
# the following are optional and defined by the user as needed
|
||||
# borg_archive_name_format: '{hostname}-{now}'
|
||||
# borg_archive_name_format: '{hostname}-{now:%Y-%m-%d-%H%M%S}'
|
||||
# borg_prune_prefix: '{hostname}-'
|
||||
# borg_check_prefix: '{hostname}-'
|
||||
|
@ -97,7 +97,7 @@ storage:
|
||||
{% if borg_archive_name_format is defined %}
|
||||
archive_name_format: '{{ borg_archive_name_format | replace("'", "") }}'
|
||||
{% elif borg_prune_prefix is defined %}
|
||||
archive_name_format: '{{ borg_prune_prefix | replace("'", "") }}-{now}'
|
||||
archive_name_format: '{{ borg_prune_prefix | replace("'", "") }}-{now:%Y-%m-%d-%H%M%S}'
|
||||
{% else %}
|
||||
archive_name_format: '{hostname}-{now:%Y-%m-%d-%H%M%S}'
|
||||
{% endif %}
|
||||
|
Loading…
Reference in New Issue
Block a user