diff --git a/roles/mgrote_todoist_backup/templates/todoist_backup.service.j2 b/roles/mgrote_todoist_backup/templates/todoist_backup.service.j2 index 80c888af..cc822d00 100644 --- a/roles/mgrote_todoist_backup/templates/todoist_backup.service.j2 +++ b/roles/mgrote_todoist_backup/templates/todoist_backup.service.j2 @@ -5,7 +5,6 @@ Description=Create Todoist backups. OnFailure=todoist_backup_mail.service [Service] -Environment="TODOIST_TOKEN=geheim" Type=oneshot Restart=on-failure RestartSec=10min diff --git a/roles/mgrote_todoist_backup/templates/todoist_backup.sh.j2 b/roles/mgrote_todoist_backup/templates/todoist_backup.sh.j2 index 8de3e8a4..1cc15ebf 100644 --- a/roles/mgrote_todoist_backup/templates/todoist_backup.sh.j2 +++ b/roles/mgrote_todoist_backup/templates/todoist_backup.sh.j2 @@ -1,4 +1,10 @@ #!/bin/bash +TODOIST_TOKEN=geheim + cd /shares_backup/full-offline-backup-for-todoist + python3 -m full_offline_backup_for_todoist --verbose download --with-attachments + + + # TODO shellcheck