Backup media folder to Dropbox
$ docker run \
--name media_backup \
-d \
--restart=always \
--log-opt max-size=1m \
--log-opt max-file=5 \
-e FOLDER_PATH=/any/folder \
-e ARCHIVE_NAME=media \
-e DROPBOX_PREFIX=PROJECT_NAME \
-e DROPBOX_ACCESS_TOKEN=YOUR_TOKEN \
-e SCHEDULE=@daily \
mc388/media-dropbox-backup
FOLDER_PATH
the path to folder requiredARCHIVE_NAME
the archive name requiredDROPBOX_PREFIX
path prefix in your Dropbox (default: empty)DROPBOX_ACCESS_TOKEN
your Dropbox API access token requiredSCHEDULE
backup schedule time, see explainatons below
You can additionally set the SCHEDULE
environment variable like -e SCHEDULE="@daily"
to run the backup automatically.
More information about the scheduling can be found here.