From a07ad897e73f3fa0c10f5272ff3da799ce2e2eec Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Fri, 27 Sep 2024 18:37:35 +0200 Subject: [PATCH] dd --- .../templates/todoist_backup.service.j2 | 1 - roles/mgrote_todoist_backup/templates/todoist_backup.sh.j2 | 6 ++++++ 2 files changed, 6 insertions(+), 1 deletion(-) 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