1 Answers
Ah, the -r
flag can let you copy the objects while preserving their subdirectory structure. If you use **
, you will "flatten" the structure. Check out this gsutil cp
documentation page for all the details. 🙂
Mattias
Sign Up Free or Log In to participate!
Hello, is there a need to have -r in gsutil cp command? It seems using "gsutil cp" already copies all objects from the old bucket to the new bucket.
Ah, the -r
flag can let you copy the objects while preserving their subdirectory structure. If you use **
, you will "flatten" the structure. Check out this gsutil cp
documentation page for all the details. 🙂
Mattias
Psst…this one if you’ve been moved to ACG!
Thank you!
No problem! Happy to help! 🙂