Sign inSign up

xueshanf/rclone

By xueshanf

Updated about 9 years ago

Dockerized rclone.

Image
0

1.1K

xueshanf/rclone repository overview

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.

To build rclone docker image:

docker build -t my-rclone .

To use the image

Help
docker run --rm -it my-rclone help
Backup files to AWS bucket

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

Tag summary

Content type

Image

Digest

Size

12.3 MB

Last updated

about 9 years ago

docker pull xueshanf/rclone