Last Updated: May 15, 2019
·
5.257K
· moak

Copy all files in a folder from Google Drive to AWS S3

  1. Install and set up https://github.com/gdrive-org/gdrive and https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-install.html
  2. Create and cd into a temporary folder.
  3. Download all files: gdrive download query -f " 'THE_FOLDER_ID' in parents" where THE_FOLDER_ID is the value to the right of the folders/ part in thein the URL https://drive.google.com/drive/u/0/folders/16n2BSfqjCjustAnExample
  4. Upload to S3: aws s3 cp . s3://your-bucket/targetfolder --recursive

You're gucci