Couchbase API or utility

Hi There,

I want to copy my data from one cluster(8 out of 10 buckets) to another cluster either via curl commands or using SDK libraries. Could someone please let me know if is there any libraries/APIs available by which I can do this.

We need to copy the data based on some queries from one cluster to another cluster on same bucket.