cbrestore to copy data to a new bucket?
trying to use cbrestore to transfer/copy data to a new bucket. essentially would like to rename a bucket, by transferring from existing bucket to the new one already created.
tried:
"C:\Program Files\Couchbase\Server\bin\cbrestore" --host=localhost --port=11211 --username=newbucket --password=xxxxx --verbose master.couch 0.couch 1.couch 2.couch 3.couch 4.couch 5.couch 6.couch 7.couch 8.couch 9.couch 10.couch 11.couch 12.couch 13.couch 14.couch 15.couch
but I get this message:
Error running query: PRAGMA user_version;
Error: near line 1: file is encrypted or is not a database.
I am most certainly not understanding something correctly.
I saw the documentation of mbrestore (in the Couchbase 1.8 documentation) and figured cbrestore should be able to do the same:
http://www.couchbase.com/docs/couchbase-manual-1.8/couchbase-backup-rest...
If you are unable to meet the above requirements for restoring a cluster, you can use the mbrestore tool (included in versions 1.6.4 and higher). This script will read the documents from a set of database files and send them as client commands into a bucket of your choosing.
This is useful if:
You want to restore data into a cluster of a different size
You want to transfer/restore data into a different bucket
any suggestions?
Thanks,
ChssAddct
Unfortunately, cbrestore is not in synch with some key changes in Couchbase Server 2.0 yet. The best way to handle this at the moment is probably to access the _all_docs view and retrieve each document to put in a file. This is assuming you have JSON data.