Aller au contenu principal

Couchbase Backup

XLServer allows you to configure full and incremental backups for Couchbase clusters, ensuring secure and automated protection of distributed, mission-critical NoSQL data.
It supports both standalone clusters and multi-node clusters, with seamless integration for snapshot, restore, and performance management.


⚙️ Prerequisites

Before linking a Couchbase database cluster to XLServer, make sure the following conditions are met:

  • Couchbase database server is reachable from XLServer.
  • Valid credentials for a Couchbase user with backup privileges and catalog system views.
  • XLServer has SSH access to all nodes of the cluster where Couchbase is running.
  • Couchbase server version must be ≥ 6.5.
  • There is enough free space in datastore to hold database backups.
  • All database hosts must have NFS client installed.

Note: Couchbase user must have all privileges required for backup.
Refer to appendix “Couchbase User” for the script to create the required user.
Never link a database to the PUBLIC project, otherwise everyone will have access to it.


To link a Couchbase cluster with XLServer, follow these steps:

  1. Navigate to the Couchbase database server detail page.
    Non-linked Couchbase database

  2. Ensure the cluster is not yet linked.
    Click Link Database link, or from Actions, click Link.

  3. The Linking wizard is displayed.

  4. Enter Couchbase credentials and click CHECK CONNECTION.
    Check connection

    You can only continue if the database connection is successful.

  5. In Linking Parameters page, provide:

    • Mount Base: NFS mount point, e.g. /mnt/link
    • Parallel Channels: number of backup threads (default: 1, max: 32)
    • Project: select the project (automatically linked with the environment)
    • Default Snapshot Retention: default retention policy for all snapshots
    • Storage Optimization: enable compression and/or deduplication

    Linking parameters

  6. Click Next to review the summary of inputs.
    Linking summary

  7. Click CONNECT to validate linking.

  8. Monitor job progress from the Jobs page.
    Linking progress

  9. Once completed, the cluster appears as a linked live database:
    Live DB detail


📋 Live Database Server Detail

Once linked, the Couchbase cluster detail page has two main tabs:

  1. Summary
  2. Performances

🔎 Summary Tab

The summary tab consists of three areas:

  • Database Parameters
    Displays metadata such as vendor, environment, project, cluster name, version, backup path, strategy, parallel threads, quota, retention, credentials, connection mode, discovery type, linked/sync/refresh timestamps, and user who added the cluster.

  • Buckets
    Lists all Couchbase buckets with their sizes and metadata.

  • Snapshots Calendar
    A calendar showing all created snapshots. Green points = successful snapshots.


Database Settings Table

SettingDescriptionDefault valueModifiable
ProjectProject on which cluster is attachedNo
EnvironmentDatabase environmentNo
VendorDatabase vendor (always COUCHBASE)COUCHBASENo
Database ServerCluster nameNo
VersionCouchbase server versionNo
Backup PathPath used for backup (Mount Base)Yes
Backup StrategyStrategy attached to this clusterYes
ParallelNumber of backup threads1Yes
QuotaMax number of clones (0 = unlimited)10Yes
Snapshot RetentionDefault retention before deletion7 daysYes
Database TypeAlways "Live Database"Live DatabaseNo
DB UserDatabase credentialsYes
Connecting ModeAlways ONLINE (OFFLINE mode planned future)ONLINENo
DiscoveryAUTO (auto-discovered) or MANUALAUTOYes
Linked OnDate/time of linkingNo
Last Sync TimeTimestamp of last synchronizationNo
Last Refresh TimeTimestamp of last refreshNo
Created ByUser who linked the clusterNo

📊 Performances Tab

The performance tab displays:

  • Snapshot history
  • Disk usage
  • Compression & deduplication ratios
  • Backup duration
  • RPO (Recovery Point Objective)
  • Success vs failure ratios
  • Graphs for backup size, database size, compression, and duration

Examples:

Snapshots list
Performance detail
Pie charts
Line charts


⚡ Allowed Actions on Live Cluster

Actions available on a live Couchbase cluster:

  • Snapshot
  • Refresh
  • Mount Snapshot
  • Restore
  • Disable
  • Enable
  • Delete

📷 Snapshot

  1. Go to Actions > Snapshot
    Confirm action.
    Snapshot confirmation

  2. Monitor progress from Jobs.
    Snapshot progress

  3. View snapshot list from calendar:
    Snapshot list

  4. Open snapshot detail:
    Snapshot detail

    Detail includes:

    • Recovery Time
    • Recovery Point
    • Snapshot size
    • Retention
    • Buckets

🔄 Refresh

Click Actions > Refresh to refresh metadata without creating a snapshot.
Refresh


📂 Mount Snapshot

  • Mounts snapshot content on source environment.
  • Used for manual recovery, inspection, or browsing backup files.

⚠️ Important:
When snapshot is mounted, backups are disabled until unmounted.
Always unmount after use to avoid blocking backups.


♻️ Restore

Restores live Couchbase cluster from the last snapshot or a specific snapshot.
Refer to Database Recovery for more details.


⏸ Disable / ▶️ Enable

  • Disable: Prevents all actions and backups (e.g. maintenance mode).
  • Enable: Restores full access to all actions.

🗑 Delete

Deletes live cluster.
Delete DB

Important

Deleting live cluster will automatically remove the corresponding environment from XLServer!


⚙️ Edit Cluster Settings

  • Modify individual settings like Parallel threads.
    Update parallel

  • Bulk update via Edit Settings.
    Update settings


📦 Backup Strategy

  • Assign: Attach strategy from detail page.
    Assign strategy

  • Modify: Change strategy or toggle binlog purge.
    Modify strategy

  • Remove: Select No protection.
    Remove strategy


🔑 Change Database Credentials

  1. From cluster home page, click pencil near DB User.
  2. Enter username and password.
    Change credentials
  3. Click VALIDATE.

If credentials are invalid, an error message is displayed.


📝 Summary

The Couchbase integration with XLServer provides:

  • Centralized management of snapshots, refresh, restore, and monitoring
  • Granular performance metrics (compression, deduplication, disk usage)
  • Customizable backup strategies with retention and optimization options
  • Secure and efficient handling of distributed Couchbase clusters