How to connect to multiple buckets and sync data between them

@shiv4nsh
Currently, My application is connecting to a bucket, but the bucket somtime down, so my application cant be saved and read data from it.I want to connect to many buckets and sync data between them, if one of bucket is down, i can use another bucket with data has been sync.
Thanks