Backing up your data should be a regular process on your cluster to ensure that you do not lose information in the event of a serious hardware or installation failure.
There are a number of methods for performing a backup:
Using cbbackup
The cbbackup command enables you to back up a single node, single buckets, or the entire cluster into a flexible backup structure that allows for restoring the data into the same, or different, clusters and buckets. All backups can be performed on a live cluster or node. Using cbbackup is the most flexible and recommended backup tool.
For more information, see Section 5.6.1, “Backing Up Using cbbackup”.
To restore, you need to use the cbrestore command.
Using File Copies
A running or offline cluster can be backed up by copying the files on each of the nodes. Using this method you can only restore to a cluster with an identical configuration.
For more information, see Section 5.6.1.2, “Backing Up Using File Copies”.
To restore, you need to use the file copy method.
For detailed information on the restore processes and options, see Section 5.6.2, “Restoring Using cbrestore”.
It is a best practice to backup and restore your entire cluster to minimize any inconsistencies in data. Couchbase is always per-item consistent, but does not guarantee total cluster consistency or in-order persistence.