Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | Couchbase | Couchbase Server 2.0

cbrestore to copy data to a new bucket?

1 reply [Last post]
  • Login or register to post comments
Thu, 03/01/2012 - 20:50
ChssAddct
Offline
Joined: 09/19/2011
Groups: None

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

Top
  • Login or register to post comments
Tue, 03/06/2012 - 10:08
ingenthr
Offline
Joined: 03/16/2010
Groups:

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.

Top
  • Login or register to post comments
  • Login or register to post comments
  • Login
  • Register

Company

  • About Us
  • Leadership
  • Customers
  • Partners
  • Contact Us

Product

  • Couchbase Server
  • Couchbase SDKs
  • Use Cases
  • Documentation
  • Forums

Open Source

  • Couchbase Project
  • Couchbase vs. CouchDB

Commercial

  • Subscriptions & Support
  • Training & Services

News

  • Blog
  • Newsletter
  • Press Releases
  • Buzz

Follow Us

    
  • Customer Login
  • Terms of Service
  • Privacy Policy
  • Trademark Policy
  • Site Map

© 2013 COUCHBASE All rights reserved.

Sign in to Couchbase Community

close
  • Create new account
  • Request new password
You are logging into the Forums, Wiki and Issue Tracker