Description
I create two items on a single node on build 1707.
>>> client.set("chisheng", 0, 0, "hong")
(1045019847, 7878031206753819, '')
>>> client.set("chisheng1", 0, 0, "lindy")
(3399193960, 7878043192808819, '')
Then I backup these 2.
[chisheng@cen-1715 bin]$ ./cbbackup http://Administrator:password@10.5.2.23:8091 ~/backup/backup1
################### 100.0% (2/2 msgs)
bucket: default, msgs transferred...
: total | last | per sec
batch : 5 | 5 | 24.1
byte : 9 | 9 | 43.3
msg : 2 | 2 | 9.6
done
Then I try to restore the item with value "lindy"
[chisheng@cen-1715 bin]$ ./cbrestore ~/backup/backup1 http://Administrator:password@10.5.2.23:8091 --data lindy
Usage: cbrestore [options] backup_dir destination
Restores a single couchbase bucket.
Please first create the destination / bucket before restoring.
Examples:
cbrestore /backups/backup-42 http://HOST:8091 \
--bucket-source=default
cbrestore /backups/backup-42 couchbase://HOST:8091 \
--bucket-source=default
cbrestore /backups/backup-42 memcached://HOST:11211 \
--bucket-source=sessions --bucket-destination=sessions2
cbrestore: error: no such option: --data
[chisheng@cen-1715 bin]$ ./cbrestore ~/backup/backup1 http://Administrator:password@10.5.2.23:8091 -d lindy
Usage: cbrestore [options] backup_dir destination
Restores a single couchbase bucket.
Please first create the destination / bucket before restoring.
Examples:
cbrestore /backups/backup-42 http://HOST:8091 \
--bucket-source=default
cbrestore /backups/backup-42 couchbase://HOST:8091 \
--bucket-source=default
cbrestore /backups/backup-42 memcached://HOST:11211 \
--bucket-source=sessions --bucket-destination=sessions2
cbrestore: error: no such option: -d
cbrestore doesn't support "-d --data" still. So we should mark it as experiment on wiki maybe.