work on restore

This commit is contained in:
tolerryan
2024-10-28 00:33:26 -05:00
parent b5569409e1
commit 0d3c51446d

View File

@@ -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: