meta = cb1.n1ql_query(N1QLQuery(‘INSERT INTO bucket1 (key _k, value _v) SELECT META().ID _k, _v FROM bucket2 _v;’)).execute().meta
But through Python SDK, I want to copy data from one bucket (bucket1) of couchbase server to a bucket (bucket2) in different couchbase server . Can anyone please help me on this.
After retrieving data from scluster you need to iterate over results get the document key and and document https://cloud.couchbase.com/sign-in
Each document key and document you need to insert into target cluster (the INSERT syntax is not right) directly KV CURD operations vs N1QL