Skip to content
Object transferGoogle Cloud Storage

gsutil rsync

Synchronize directory contents between local storage and buckets.

Command
gsutil -m rsync -r gs:///

Example usage

Keep directories mirrored and prune deleted files where needed.

gsutil -m rsync -r <local_dir> gs://<bucket>/<prefix>
gsutil -m rsync -r gs://<bucket>/<prefix> <local_dir>

Related tags

Object transfercloudstoragegsutil