Reputation: 79
I have storage buckets b1 and b2 in google cloud. b2 has a folder f1, I need to maintain f1 in sync with bucket b2. I came across the gsutil's rsync command, but that doesn't solve my problem.
How do I go about achieving this?
Upvotes: 0
Views: 66
Reputation: 317497
If you want a fully automated solution (that you implement with code you write), use Cloud Functions to write a storage trigger the runs when a new object is created in b1, then copy it to b2. You would probably also want to trigger on the deletion of objects as well in order to mirror that change.
You will have to write the code for all this - there is no fully-managed solution provided by Cloud Functions.
Upvotes: 1