hardgsutil

Synchronise a local directory with a Cloud Storage bucket, copying only changed files

command

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

also accepted

gsutil rsync -rgsutil rsync

Command breakdown

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

gsutilrsync-r./LOCAL_DIRgs://BUCKET_NAME
FlagPurpose
-rBoolean flag

Test your recall — not just your reading.

Practice with interactive quiz →