gsutil has a really neat feature called 'rsync' that synchronises 2 buckets/directories in GCS. I've searched the JSON API and the Java Client library but I can't see anything that supports this type of functionality out-of-the-box.
Does anyone know how to achieve the same functionality of 'rsync' via the Java Client (without actually writing the diff logic between the 2 buckets)?
There is not. gsutil's rsync functionality is implemented using the JSON API, but the JSON API itself does not have any inherent support for syncing between buckets or directories. You could certainly implement syncing in the same manner, or you could call out to gsutil itself, but those are pretty much your main two choices.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With