dd
Some checks failed
ansible-lint / gitleaks (pull_request) Successful in 5s
ansible-lint / Ansible Lint (pull_request) Failing after 49s

This commit is contained in:
Michael Grote 2024-09-27 18:27:43 +02:00
parent 6571001da3
commit 00d6862f5a
4 changed files with 14 additions and 2 deletions

View file

@ -6,6 +6,15 @@
repo: 'https://github.com/joanbm/full-offline-backup-for-todoist' repo: 'https://github.com/joanbm/full-offline-backup-for-todoist'
dest: /shares_backup/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 - name: Ensure services are present
become: true become: true
ansible.builtin.template: ansible.builtin.template:

View file

@ -10,5 +10,4 @@ Type=oneshot
Restart=on-failure Restart=on-failure
RestartSec=10min RestartSec=10min
WorkingDirectory=/shares_backup/full-offline-backup-for-todoist ExecStart="/usr/bin/todoist_backup.sh"
ExecStart="python3 -m full_offline_backup_for_todoist --verbose download --with-attachments"

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