Cannot backup data couchbase 1.8 by command cbbackup
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
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
Exactly my problem, thanks so much.
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.