homeserver/roles/mgrote_todoist_backup/templates/todoist_backup.service.j2

15 lines
366 B
Text
Raw Normal View History

2024-09-27 18:06:17 +02:00
{{ file_header | default () }}
[Unit]
Description=Create Todoist backups.
OnFailure=todoist_backup_mail.service
[Service]
Environment="TODOIST_TOKEN=geheim"
Type=oneshot
Restart=on-failure
RestartSec=10min
2024-09-27 18:16:35 +02:00
WorkingDirectory=/shares_backup/full-offline-backup-for-todoist
2024-09-27 18:06:17 +02:00
ExecStart="python3 -m full_offline_backup_for_todoist --verbose download --with-attachments"