How to copy Views from one bucket to another?


Please can anyone point me to the right direction on how to copy views or design documents from source bucket to destination bucket within the same server node?

cbtransfer should be exactly what you’re looking for, with the -x design_doc_only=1 option:

./cbtransfer http://localhost:8091 http://localhost:8091 -b beer-sample -B test -x design_doc_only=1 -u Administrator -p p4ssw0rd

I tried this but the views were not copied. I can see a success message but this is also displayed transfer design doc only. bucket msgs will be skipped.