hardgsutil

Recursively upload an entire local directory to Cloud Storage

command

gsutil cp -r ./LOCAL_DIR/ gs://BUCKET_NAME/

also accepted

gsutil cp -rgsutil cp -r ./

Command breakdown

Part of the Cloud Storage CLI (gsutil) — Cloud Storage gsutil category.

gsutilcp-r./LOCAL_DIR/gs://BUCKET_NAME/
FlagPurpose
-rBoolean flag

Test your recall — not just your reading.

Practice with interactive quiz →