Skip to content

Commit

Permalink
sync with upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
kgizdov committed Jul 12, 2021
1 parent 0b8bda2 commit ca3fc74
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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}-`

Expand Down
2 changes: 1 addition & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}-'
2 changes: 1 addition & 1 deletion templates/config.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand Down

0 comments on commit ca3fc74

Please sign in to comment.