Copy all files in a folder from Google Drive to AWS S3
- Install and set up https://github.com/gdrive-org/gdrive and https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-install.html
- Create and cd into a temporary folder.
- Download all files:
gdrive download query -f " 'THE_FOLDER_ID' in parents"
whereTHE_FOLDER_ID
is the value to the right of thefolders/
part in thein the URL https://drive.google.com/drive/u/0/folders/16n2BSfqjCjustAnExample - Upload to S3:
aws s3 cp . s3://your-bucket/targetfolder --recursive
You're gucci
Written by Mark Vaughn
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Google drive
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#