Skip to content

traum-ferienwohnungen/docker-rclone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Run rclone sync periodically in docker

Dockerized version of rclone used to run one-time and/or periodic sync's.

Docker Pulls

Usage

Use the image as if you would run rclone sync direcly and it will re-run your rclone command every 5 minutes, use the environment variable SYNC_INTERVAL_SECONDS to modify the intervall or set it to 0 to make rclone run only once.

For example:

docker run -e SYNC_INTERVAL_SECONDS=10 \
  -v /gcs-serviceaccount.json:/gcs-serviceaccount.json:ro \
  -v /tmp/foo/:/tmp/foo/ \
  --name rclone \
  traumfewo/docker-rclone \
  --gcs-service-account-file /gcs-serviceaccount.json sync :gcs:BUCKET-NAME/BUCKET-DIR/ /tmp/foo/