add todoist backup job and role #194

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

View file

@ -5,7 +5,6 @@ Description=Create Todoist backups.
OnFailure=todoist_backup_mail.service OnFailure=todoist_backup_mail.service
[Service] [Service]
Environment="TODOIST_TOKEN=geheim"
Type=oneshot Type=oneshot
Restart=on-failure Restart=on-failure
RestartSec=10min RestartSec=10min

View file

@ -1,4 +1,10 @@
#!/bin/bash #!/bin/bash
TODOIST_TOKEN=geheim
cd /shares_backup/full-offline-backup-for-todoist cd /shares_backup/full-offline-backup-for-todoist
python3 -m full_offline_backup_for_todoist --verbose download --with-attachments python3 -m full_offline_backup_for_todoist --verbose download --with-attachments
# TODO shellcheck