Google Certified Associate Cloud Engineer 2020

Sign Up Free or Log In to participate!

Does gsutils cp command not create folders but objects following a naming convention?

Suppose I have the following folder








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?

Aleksandar Hristovski

-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.

0 Answers

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?