I have Couchbase 6.0.0 Community Edition running on Ubuntu 19.04. Couchbase is organized to a cluster having 2 nodes. I try to test backup and restore procedure for a single bucket using following steps:
- Prepare bucket with data (let’s call it ‘test-bucket’) and primary index. This is the only bucket in the cluster.
- Create backup using
/opt/couchbase/bin/cbbackup http://host:8091 /backup_folder -u username -p password -b test-bucketcommand.
- Remove all the data from bucket by performing N1QL query ‘DELETE FROM test-bucket’.
- Run restore command
/opt/couchbase/bin/cbrestore /backup_folder http://host:8091 -u username -p password --bucket-destination=test-bucket.
- Check the data in test-bucket.
cbrestore command runs fine without any errors, but I am still getting empty
test-bucket, so the data is not actually being restored. However, if I create another bucket, say,
test-restore-bucket, and point
--bucket-destination argument of
cbrestore command to it, the data is being restored successfully to that bucket. Since it is not possible to rename buckets in Couchbase, restoring of data to a
test-bucket is becoming a nightmare with those limitations. My question is - have someone else experienced the same problem and is it possible to restore the data without spare bucket being involved?