Skip to content

lezuber/gdrive2s3

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gdrive2S3

Fork modifications:

  • the container now uses the official rclone docker image
  • Added some optional GDrive Config Parms
  • Removed rclone encryption
  • Removed s3 location_constraint

This repo contains a small Docker container, which I use to backup my Google Drive to AWS S3. The container relies on rclone, which does all the heavy lifting. I run it as a Scheduled Task on AWS Fargate for a few cents per month, but it should be executable wherever you can execute Docker containers.

Do not use this container unless you fully understand what it is doing. Your files are at risk. I take no responsibility for lost data.

Usage

You need to set the values of the rclone config using environment variables. I recommended to create rclone sources for gdrive, s3 and encrypted s3 locally, test them an get the values from the rclone config file.

As describe in the rclone documentation for Google Drive you should create your own Google Drive Client Id for this.

Once you have the values, you can just execute the container:

docker run -i -t --rm \
  -e gdrive_token=<token> \
  -e gdrive_client_id=<id> \
  -e gdrive_client_secret=<secret> \
  -e s3_bucket=<bucket> \
  -e s3_access_key=<access_key> \
  -e s3_access_secret=<access_secret> \
  -e s3_region=<region> \
  -e rclone_args=<additional_arguments_for_rclone> \
  lezuber/gdrive2s3

About

A Docker container to backup Google Drive to AWS S3

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Makefile 65.2%
  • Dockerfile 24.6%
  • Shell 10.2%