Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | Membase | Membase Server 1.7.x

using MB restore to load to different buckets

3 replies [Last post]
  • Login or register to post comments
Thu, 07/21/2011 - 13:26
wsorenson
Offline
Joined: 02/15/2011
Groups: None

I don't see a way to tell mbrestore which bucket to stream the backups into:

/opt/membase/bin/mbrestore -h
Usage: mbrestore [opts] db_files (use -h for detailed help)

Options:
-h, --help show this help message and exit
-a, --add Use add instead of set to avoid overwriting existing
items
-H HOST, --host=HOST Hostname of moxi server to connect to
-p PORT, --port=PORT Port of moxi server to connect to
-u USERNAME, --username=USERNAME
Bucket username (usually the bucket name) to
authenticate to moxi with
-P PASSWORD, --password=PASSWORD
Bucket password to authenticate to moxi with
-t THREADS, --threads=THREADS
Number of worker threads

Restore keys from the sqlite backing store files from a single node.

The behavior i'm seeing is this data goes straight into the default bucket even if it came from another bucket.

Top
  • Login or register to post comments
Fri, 07/22/2011 - 14:18
perry
Offline
Joined: 10/11/2010
Groups:

Whitney, you need to tell mbrestore which bucket you want to restore into.

You can do this either by changing the host/port (-H and -p) to put it into a bucket configured with a "dedicated port" or with a user/pass (-u and -P) if you have the bucket configured with a password in "standard port" mode.

By default (for ease of use) it pushes the data into 'localhost:11211' which is connected to the default bucket.

Perry

__________________

Forum support is great for free but sometimes you need a guaranteed response time and dedicated resources for your questions or issues.
Consider purchasing enterprise-level support from Couchbase: http://www.couchbase.com/products-and-services/overview
Call or email "sales -at- couchbase-dot- com" today!

Top
  • Login or register to post comments
Mon, 07/25/2011 - 14:36
wsorenson
Offline
Joined: 02/15/2011
Groups: None

Got it - thanks. I was looking for -b "bucket" or something.

Top
  • Login or register to post comments
Mon, 07/25/2011 - 14:52
perry
Offline
Joined: 10/11/2010
Groups:

Yeah, I can see the confusion there, and we'll update the documentation to provide examples.

The problem is that mbrestore doesn't actually know what the bucket is, all it knows is a 'memcached-compatible' port to send data into...

Perry

__________________

Forum support is great for free but sometimes you need a guaranteed response time and dedicated resources for your questions or issues.
Consider purchasing enterprise-level support from Couchbase: http://www.couchbase.com/products-and-services/overview
Call or email "sales -at- couchbase-dot- com" today!

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