remove backup from n8n - new build
This commit is contained in:
@@ -68,18 +68,18 @@
|
||||
group: docker
|
||||
mode: u=rw,g=r,o=r
|
||||
|
||||
- name: Check if docker config directory exists
|
||||
stat:
|
||||
path: /home/docker/data
|
||||
register: data_stat
|
||||
#- name: Check if docker config directory exists
|
||||
# stat:
|
||||
# path: /home/docker/data
|
||||
# register: data_stat
|
||||
|
||||
- name: Restore docker config Dir
|
||||
shell: |
|
||||
restic --password-file /home/restic/.resticpassword -r sftp:misamisa://home/restic/$(hostname) --target / restore latest
|
||||
args:
|
||||
chdir: /home/docker/
|
||||
creates: /home/docker/data
|
||||
when: not data_stat.stat.exists or not data_stat.stat.isdir
|
||||
#- name: Restore docker config Dir
|
||||
# shell: |
|
||||
# restic --password-file /home/restic/.resticpassword -r sftp:misamisa://home/restic/$(hostname) --target / restore latest
|
||||
# args:
|
||||
# chdir: /home/docker/
|
||||
# creates: /home/docker/data
|
||||
# when: not data_stat.stat.exists or not data_stat.stat.isdir
|
||||
|
||||
- name: Reload systemd daemon
|
||||
systemd:
|
||||
|
||||
Reference in New Issue
Block a user