cbbackupmgr
cbbackupmgr
is a tool for managing the backup and restore of Couchbase-Server data.
Understanding cbbackupmgr
The cbbackupmgr
tool backs up and restores data, scripts, configurations, and more.
It allows large data sets to be managed with extremely high performance.
Use of cloud storage is supported.
Only Full Administrators can use cbbackupmgr
; which is available in Couchbase Server Enterprise Edition only.
Note that cbbackupmgr
is not backward compatible with backups created by means of cbbackup
.
Planning for Disaster Recovery
Backup and restore capabilities are critical to an overall Disaster Recovery Plan, and ensuring thereby business continuity.
Administrators are therefore recommended to define plans for both Recovery Time Objective (RTO) and Recovery Point Objective (RPO), and make use of cbbackupmgr
correspondingly.
Backup Repositories
All backup is stored in and recovered from a Backup Repository. In turn, a Backup Repository is stored in a Backup Archive on the filesystem. Each backup job in the Backup Repository stores its backup in two ways:
-
All bucket data is stored in a small, secondary database.
-
All bucket creation scripts and configuration files are stored on the file system, as files.
Tool Locations
The cbbackupmgr
tool is installed, with all other tools, in the following per platform locations:
Operating system | Directory locations |
---|---|
Linux |
/opt/couchbase/bin/cbbackupmgr |
Windows |
C:\Program Files\Couchbase\Server\bin\cbbackupmgr Assumes default installation location |
Mac OS X |
/Applications/Couchbase Server.app/Contents/Resources/couchbase-core/bin/cbbackupmgr |
How the Backup and Restore Tool Works
By default, the cbbackupmgr
tool performs incremental backups to back up only the new data.
However, on a new cluster and for the first time, this tool generates a full backup.
Each of the subsequent, incremental backups take a fraction of the time taken by the full backup.
Archive Repository
The backup archive is a directory that contains a set of backup repositories as well as logs for the backup client. The backup directory should be modified only by the backup client, and any modifications that are not done by that client might result in a corruption of backup data.
Only one backup client can access the backup archive at one time. If multiple instances of the backup client are running on the same archive at the same time, this might result in corruption. To prevent such corruption instances, you may be required to create multiple backup archives depending on your use case.
Version Compatibility
For 6.5 and all later versions, cbbackupmgr
can be used to back up data either from a cluster running its own version, or from a cluster running a prior, compatible version.
For example, the 6.6.0 tool can back up data from a cluster running 6.6.0, 6.5.x, 6.0.x, or 5.5.x.
It can also be used to restore to any of those versions data previously backed up from any of those versions.
The following table lists the compatible cluster-versions for each version of cbbackupmgr
.
Unless otherwise specified, backup and restore apply both to local data and to data saved on cloud.
cbbackupmgr version |
7.0.x |
6.6.x |
6.5.x |
6.0.x |
5.5.x |
5.0.x |
7.0.x |
✓ |
✓ |
✓* |
✓* |
||
6.6.x |
✓ |
✓* |
✓* |
✓* |
||
6.5.x |
✓ |
✓ |
✓ |
|||
6.0.x |
✓ |
|||||
5.5.x |
✓ |
|||||
5.0.x |
✓ |
* For local backup only — not for cloud.