|
|
il y a 4 ans | |
|---|---|---|
| .dockerignore | il y a 4 ans | |
| .gitignore | il y a 4 ans | |
| Dockerfile | il y a 4 ans | |
| README.md | il y a 4 ans | |
| docker-entrypoint.sh | il y a 4 ans |
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>