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