add todoist backup job and role #194

Merged
mg merged 22 commits from todositb into master 2024-09-27 18:50:18 +02:00
4 changed files with 14 additions and 2 deletions
Showing only changes of commit 00d6862f5a - Show all commits

View file

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

View file

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

View file

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