No Description

Tobias Simetsreiter e6095c35a2 update README 4 years ago
.dockerignore 219b497a7a add Dockerfile and entrypoint for config 4 years ago
.gitignore 22491bd2a3 initial commit 4 years ago
Dockerfile 219b497a7a add Dockerfile and entrypoint for config 4 years ago
README.md e6095c35a2 update README 4 years ago
docker-entrypoint.sh 219b497a7a add Dockerfile and entrypoint for config 4 years ago

README.md

rclone-docker-config

a Dockerfile to build a minimal rclone image that can take config from cli or environment

docker build -t rclone .

# config from command line
docker run -v <dir to backup>:/mnt/rclone \
    rclone -c "$(cat ~/.config/rclone/rclone.conf)" \
    sync <remote>:<dir> /mnt/rclone

# config from environment
docker run -v <dir to backup>:/mnt/rclone \
    -e RCLONE_CFG="$(cat ~/.config/rclone/rclone.conf)" \
    rclone sync /mnt/rclone <remote>:<dir>