work on restore
This commit is contained in:
@@ -108,13 +108,18 @@
|
|||||||
# project_src: /home/docker/
|
# project_src: /home/docker/
|
||||||
# register: output
|
# register: output
|
||||||
|
|
||||||
|
- name: Check if wikmd directory exists
|
||||||
|
stat:
|
||||||
|
path: /data/wikmd
|
||||||
|
register: wikmd_stat
|
||||||
|
|
||||||
- name: Restore Wikmd Dir
|
- name: Restore Wikmd Dir
|
||||||
shell: |
|
shell: |
|
||||||
restic --password-file ./.resticpassword -r sftp:misamisa://home/restic/$(hostname) --target /data/wikmd restore latest
|
restic --password-file ./.resticpassword -r sftp:misamisa://home/restic/$(hostname) --target /data/wikmd restore latest
|
||||||
args:
|
args:
|
||||||
chdir: /home/restic
|
chdir: /home/restic
|
||||||
creates: /data/wikmd
|
creates: /data/wikmd
|
||||||
when: not stat.wikmd.stat.exists or not stat.wikmd.stat.isdir
|
when: not wikmd_stat.stat.exists or not wikmd_stat.stat.isdir
|
||||||
|
|
||||||
- name: Reload systemd daemon
|
- name: Reload systemd daemon
|
||||||
systemd:
|
systemd:
|
||||||
|
|||||||
Reference in New Issue
Block a user