restore backup task
This commit is contained in:
parent
f142b0cf16
commit
1ff7fd5414
2 changed files with 4 additions and 4 deletions
|
@ -32,3 +32,7 @@
|
|||
enabled: true
|
||||
state: started
|
||||
daemon_reload: "{{ 'yes' if service.changed or timer.changed else 'no' }}"
|
||||
- name: Restore backup
|
||||
command:
|
||||
cmd: "borgmatic extract --archive latest --destination / --config {{ service_dir }}/backup.yml"
|
||||
creates: /data
|
||||
|
|
|
@ -5,10 +5,6 @@
|
|||
state: latest
|
||||
update_cache: yes
|
||||
cache_valid_time: 86400 # One day
|
||||
- name: Create base data directory
|
||||
file:
|
||||
path: "{{ base_data_dir }}"
|
||||
state: directory
|
||||
- name: Create base service directory
|
||||
file:
|
||||
path: "{{ base_service_dir }}"
|
||||
|
|
Reference in a new issue