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