docker run -- rm \
-e TODOIST_TOKEN=... \
-e ... \
-v $(pwd):/exports \
reaperberri/todoist-backup-exporter
Note: You need to mount a volume to the /exports
directory to get the file out of the container (the example comand above mounts the current directory).
# export environment variables here like so:
# export DEST_DIR=...
go run .
Required | Name | Description | Default value |
---|---|---|---|
Yes | TODOIST_TOKEN | Your Todoist API token | |
No | DEST_DIR | Destination directory to download the file to (Don't need to change if running in a container) | /exports |
No | DEST_FILENAME_INCLUDE_DATE | Whether to include the backup date in the file name | false |
To get the Todoist API token, go to Todoist Integrations, click the "Developer" tab and copy the token from the API token section.