Rclone is a command line program to sync files and directories to and from various cloud storage vendors. This repository uses a multi-stage Dockerfile to build the rclone container image.
docker build -t my-rclone .
docker run --rm -it my-rclone help
You need to create rclone.conf first. See rclone config for details.
Here is an example of rclone.conf that will use AWS IAM role for backup:
$ cat /etc/rclone.conf
[data-backup]
type = s3
env_auth = true
access_key_id =
secret_access_key =
region = us-east-1
endpoint =
acl = private
server_side_encryption =
storage_class = STANDARD
$ RCLONE_ENDPOINT=data-backup
$ RCLONE_CHECKSUM=true
$ BACKUP_DIR=/data
$ RCLONE_CONFIG_PATH:/etc/rclone.conf \
$ /usr/bin/docker run --rm \
-v ${BACKUP_DIR}:/data \
-v ${RCLONE_CONFIG_PATH}:/etc/rclone.conf \
my-rclone --config /etc/rclone.conf --checksum=${RCLONE_CHECKSUM} \
copy /data/ ${RCLONE_ENDPOINT}/data
Content type
Image
Digest
Size
12.3 MB
Last updated
about 9 years ago
docker pull xueshanf/rclone