
Bhaskar Banerjee
Suppose I have the following folder
main_folder
–sub1
—-f1
—-f2
–sub2
—-sub3
——f3
How would these be copied to the new bucket? would it an object with name sub1/f1 or would it create a folder sub1 and copy f1 to sub1?
Sign Up Free or Log In to participate!
Suppose I have the following folder
main_folder
–sub1
—-f1
—-f2
–sub2
—-sub3
——f3
How would these be copied to the new bucket? would it an object with name sub1/f1 or would it create a folder sub1 and copy f1 to sub1?
Psst…this one if you’ve been moved to ACG!
-r adds the hierarchy from my understanding, starting with the main_folder. ie gsutil cp -r gs://source gs://destination. If you want to ignore hierarchy, use , ie gsutil cp gs://source/ gs://destination.