问题
I have a bucket (Bucket1
) that I need to delete, and move its documents to another bucket (Bucket2
).
What is the best way achieving this?
I'm using version 4.5.
回答1:
The cbtransfer tool should be able to do the data transfer you need.
https://docs.couchbase.com/server/6.0/cli/cbtransfer-tool.html
bucket-delete can be used to delete a bucket once you are finished with it.
https://docs.couchbase.com/server/6.0/cli/cbcli/couchbase-cli-bucket-delete.html
来源:https://stackoverflow.com/questions/54004461/couchbase-how-to-copy-data-from-bucket-to-another