gsutil -m cp -r build/ gs://my-bucket/site/

Category: Google Cloud & Workspace

gsutil -m cp -r build/ gs://my-bucket/site/

Upload a directory using parallel threads

Same recursive copy as plain cp -r but splits the work across multiple threads and connections, which is dramatically faster for many or large files. The -m flag must come before the subcommand, as in gsutil -m cp. Expect higher network usage, and on huge jobs occasional transient rate-limit errors.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.