Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"gsutil is not the recommended CLI for Cloud Storage. Use gcloud storage commands in the Google Cloud CLI instead." what's the difference? #1778

Open
srcc-chekh opened this issue May 8, 2024 · 2 comments

Comments

@srcc-chekh
Copy link

per
https://cloud.google.com/storage/docs/gsutil/commands/rsync

I see there is now a note "Important: gsutil is not the recommended CLI for Cloud Storage. Use gcloud storage commands in the Google Cloud CLI instead."

Is there an explanation somewhere about the difference between "gsutil rsync" and "gcloud storage rsync"? Examining the python files in my google-cloud-sdk installation shows they are quite different but it's not clear to me if the features are actually any different.

So for example my original command
/usr/bin/gsutil -m rsync -C -e -P -r -x '(.gnupg|..fifo..|.cache|.Icon\r$|.fifo)' /data/dataset1 gs://backup-dataset1
will turn into
gcloud storage rsync -c --ignore-symlinks -P -r -x '(.gnupg|.
.fifo..*|.cache|.*Icon\r$|.fifo)' /data/dataset1 gs://backup-dataset1

but what's the difference? Do they hit the same REST API underneath anyway?

@srcc-chekh
Copy link
Author

Similarly, I see "gsutil du -sh gs://BUCKET_NAME" now has the equivalent "gcloud storage du gs://BUCKET_NAME --summarize --readable-sizes"

@jsoref
Copy link
Contributor

jsoref commented Jun 19, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants