mirror of
https://github.com/borgbase/ansible-role-borgbackup.git
synced 2025-09-26 17:54:15 +02:00
Merge 66cfb4f21c
into 981d4f9072
This commit is contained in:
commit
230200bcb7
@ -8,7 +8,7 @@ galaxy_info:
|
|||||||
description: Set up backup to remote machine using Borg and Borgmatic.
|
description: Set up backup to remote machine using Borg and Borgmatic.
|
||||||
company: "BorgBase.com"
|
company: "BorgBase.com"
|
||||||
license: license (BSD, MIT)
|
license: license (BSD, MIT)
|
||||||
min_ansible_version: 2.0
|
min_ansible_version: "2.0"
|
||||||
platforms:
|
platforms:
|
||||||
- name: Debian
|
- name: Debian
|
||||||
versions:
|
versions:
|
||||||
|
@ -51,6 +51,7 @@
|
|||||||
mode: 0600
|
mode: 0600
|
||||||
|
|
||||||
- name: Add cron-job for borgmatic (large repo, create and check separate)
|
- name: Add cron-job for borgmatic (large repo, create and check separate)
|
||||||
|
when: borgmatic_large_repo
|
||||||
block:
|
block:
|
||||||
- name: Add cron job for regular create and prune
|
- name: Add cron job for regular create and prune
|
||||||
cron:
|
cron:
|
||||||
@ -69,9 +70,9 @@
|
|||||||
user: "root"
|
user: "root"
|
||||||
cron_file: "{{ borgmatic_cron_name }}"
|
cron_file: "{{ borgmatic_cron_name }}"
|
||||||
job: "borgmatic -c /etc/borgmatic/{{ borgmatic_config_name }} -k"
|
job: "borgmatic -c /etc/borgmatic/{{ borgmatic_config_name }} -k"
|
||||||
when: borgmatic_large_repo
|
|
||||||
|
|
||||||
- name: Add cron-job for borgmatic (normal-sized repo)
|
- name: Add cron-job for borgmatic (normal-sized repo)
|
||||||
|
when: not borgmatic_large_repo
|
||||||
block:
|
block:
|
||||||
- name: Add cron job for create, check and prune
|
- name: Add cron job for create, check and prune
|
||||||
cron:
|
cron:
|
||||||
@ -85,7 +86,6 @@
|
|||||||
cron:
|
cron:
|
||||||
name: "{{ borgmatic_cron_name }}-check"
|
name: "{{ borgmatic_cron_name }}-check"
|
||||||
state: absent
|
state: absent
|
||||||
when: not borgmatic_large_repo
|
|
||||||
|
|
||||||
- name: Set PATH for borgmatic cron job.
|
- name: Set PATH for borgmatic cron job.
|
||||||
cron:
|
cron:
|
||||||
|
Loading…
Reference in New Issue
Block a user