Couchbase还原错误

时间:2012-07-06 10:03:42

标签: couchbase

服务器系统:Ubuntu 10.04.2

Couchbase:1.8.1

python:2.7.3

返回文件:cbbackup ./default-data/default / data / Couchbase_backups / default_20120705

恢复:cbrestore -a default_20120705 / default *

root@945f14b6-3015-4dac-b486-a8914a3f553d:~# cbrestore -a /data/Couchbase_backups/default_20120706/defaults*
Error on key 'sk_deviceHistory_F118C61C-8B30-4667-A7E2-2959836734BD': Memcached error #32:  Auth failure
Error on key 'sk_deviceHistory_F118C61C-8B30-4667-A7E2-2959836734BD': Memcached error #32:  Auth failure
Error on key 'sk_deviceHistory_F118C61C-8B30-4667-A7E2-2959836734BD': Memcached error #32:  Auth failure
Error on key 'sk_deviceHistory_F118C61C-8B30-4667-A7E2-2959836734BD': Memcached error #32:  Auth failure
^Z
[1]+  Stopped                 cbrestore -a /data/Couchbase_backups/default_20120706/defaults*
root@945f14b6-3015-4dac-b486-a8914a3f553d:~# ps -ef|grep python
root       711   512  1 15:46 pts/2    00:00:00 python /opt/couchbase/lib/python/cbrestore -a /data/Couchbase_backups/default_20120706/defaults /data/Couchbase_backups/default_20120706/defaults-0.mb /data/Couchbase_backups/default_20120706/defaults-1.mb /data/Couchbase_backups/default_20120706/defaults-2.mb /data/Couchbase_backups/default_20120706/defaults-3.mb
root       726   512  0 15:46 pts/2    00:00:00 grep --color=auto python
root@945f14b6-3015-4dac-b486-a8914a3f553d:~# kill -9 711
root@945f14b6-3015-4dac-b486-a8914a3f553d:~# ps -ef|grep python
root       729   512  0 15:47 pts/2    00:00:00 grep --color=auto python
[1]+  Killed                  cbrestore -a /data/Couchbase_backups/default_20120706/defaults*
root@945f14b6-3015-4dac-b486-a8914a3f553d:~# ps -ef|grep python
root       731   512  0 15:47 pts/2    00:00:00 grep --color=auto python
root@945f14b6-3015-4dac-b486-a8914a3f553d:~#

2 个答案:

答案 0 :(得分:1)

你试过-u BUCKET_NAME和-p BUCKET_PASSWORD参数吗?这样cbrestore工具可以成功验证到正确的存储桶吗?

还有更多的标志和用法,还有-h / --help参数。

答案 1 :(得分:0)

sudo ./cbbackup HOST:PORT ~/Documents/ -u ‘username’ -p ‘password‘ -b BUCKET_NAME

这适合我。