dd
This commit is contained in:
parent
6571001da3
commit
00d6862f5a
4 changed files with 14 additions and 2 deletions
|
@ -6,6 +6,15 @@
|
|||
repo: 'https://github.com/joanbm/full-offline-backup-for-todoist'
|
||||
dest: /shares_backup/full-offline-backup-for-todoist
|
||||
|
||||
- name: Ensure script are present
|
||||
become: true
|
||||
ansible.builtin.template:
|
||||
src: "todoist_backup.sh.j2"
|
||||
dest: "/usr/bin/todoist_backup.sh"
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0754"
|
||||
|
||||
- name: Ensure services are present
|
||||
become: true
|
||||
ansible.builtin.template:
|
||||
|
|
|
@ -10,5 +10,4 @@ Type=oneshot
|
|||
Restart=on-failure
|
||||
RestartSec=10min
|
||||
|
||||
WorkingDirectory=/shares_backup/full-offline-backup-for-todoist
|
||||
ExecStart="python3 -m full_offline_backup_for_todoist --verbose download --with-attachments"
|
||||
ExecStart="/usr/bin/todoist_backup.sh"
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
|
||||
cd /shares_backup/full-offline-backup-for-todoist
|
||||
python3 -m full_offline_backup_for_todoist --verbose download --with-attachments
|
Loading…
Reference in a new issue