Author Topic: Moving Files from Different Folders in Google S3 Storage Bucket  (Read 1894 times)

wiredlife

  • Hero Member
  • *****
  • Posts: 934
    • View Profile
Moving Files from Different Folders in Google S3 Storage Bucket
« on: January 17, 2019, 10:37:28 AM »
Moving Files from Different Folders in Google S3 Storage Bucket

Pissed off with Amazon,  I moved all the files from AWS to Google Cloud Storage. They were in different Folders and I wanted them to consolidate in only one Bucket (i.e Bucket's root folder) and change the storage type to coldline  (coldline should be set once you know you are never going to come back to those files in the near future)

*.* is implemented as ** in Google Cloud Console
The command I used was

gsutil -m mv gs://che_aws/s3-us-west-1.amazonaws.com/che/mca/** gs://che_aws/

s3-us-west-1.amazonaws.com/che/mca/ <--- This was the folder structure on AWS.

What does MV do ?
It copies all the files to specified destination and then remove from the source folder. Even remove the empty Folders.