Sign inSign up

gibibyte/rclone-supercronic

By gibibyte

•Updated over 1 year ago

rclone + supercronic for periodic jobs

Image
0

2.5K

gibibyte/rclone-supercronic repository overview

⁠rclone-supercronic

⁠Motivation

This image provides an easy way to have a docker container run periodic rclone scripts and the ability to run as an arbitrary user (in particular non-root).

⁠How do I use it?

  1. Write a bash script that does what you want, e.g. multiple rclone commands to copy / move your stuff.
  2. Edit the crontab file to match your needs. You can also use pre-configured directories like /etc/periodic/daily
  3. Mount your script(s) into the appropriate paths inside the container

Example (bare docker command):

docker run -e PUID=$(id -u) -e PGID=$(id -g) -v ${PWD}/crontab:/etc/supercronic/crontab -v ${PWD}/hello.sh:/etc/periodic/custom/hello --rm -it gibibyte/rclone-supercronic

Note: When using run-parts in the crontab, the scripts must not have a file extension (e.g. .sh). See man page⁠

⁠Technical background

The Dockerfile adds supercronic⁠ on top of the official rclone⁠ Docker image and an entrypoint using su-exec to drop root privileges.

Tag summary

Content type

Image

Digest

sha256:a9ba6e5b2…

Size

34.1 MB

Last updated

over 1 year ago

docker pull gibibyte/rclone-supercronic