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

Cannot backup data couchbase 1.8 by command cbbackup

3 replies [Last post]
  • Login or register to post comments
Thu, 05/03/2012 - 22:20
benphamit
Offline
Joined: 05/03/2012
Groups: None

Hi all my friends ,
- I've followed the docs for backing up a couchbase 1.8 server, and tweaked the paths for my installation, but the backup script continues to state it can not open the files. You can see the command belowed:

[root@GSO_CZGSS_MB01 ~]# /opt/couchbase/bin/cbbackup /opt/couchbase/var/lib/couchbase/data/default-data /tmp/bk/
Error: unable to open database "/opt/couchbase/var/lib/couchbase/data/default-data": unable to open database file
Try backup default-data again
Error: unable to open database "/opt/couchbase/var/lib/couchbase/data/default-data": unable to open database file
Try backup default-data again
Error: unable to open database "/opt/couchbase/var/lib/couchbase/data/default-data": unable to open database file
Try backup default-data again

- Anyone can solve this problem , please help me . Any help will be appreciated .

Best Regards !
Ben Pham

Top
  • Login or register to post comments
Mon, 05/14/2012 - 07:53
taylertodd
Offline
Joined: 05/14/2012
Groups: None

I'm having the same problem on Windows. I saw some stuff saying you need to run as the couchbase user. I'm not positive what that means but I am running my script as an administrator and still no luck.

Top
  • Login or register to post comments
Thu, 05/17/2012 - 07:59
Mpinto
Offline
Joined: 05/17/2012
Groups: None

Hi,

I had the same issue.
Just add the default bucket to the end of the script like:

SHELL> cbbackup /opt/couchbase/var/lib/couchbase/data/default-data/default ./2012-05-17

something like this will appear:
Backup of default done
Vacuum of default done
Backup of default-0.mb done
Vacuum of default-0.mb done
Backup of default-1.mb done

Someone ought to change the documentation.

Regards,
Mário

Top
  • Login or register to post comments
Thu, 05/17/2012 - 10:15
taylertodd
Offline
Joined: 05/14/2012
Groups: None

Exactly my problem, thanks so much.

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