Jump to: navigation, search

Difference between revisions of "Trove/backup-restore-single-instance-couchbase"

(Created page with "=== Introduction === This article describes the design and process for backup and restore for Couchbase. ==== Blueprint ==== https://blueprints.launchpad.net/trove/+spec/bac...")
 
 
Line 42: Line 42:
 
#*** https://github.com/couchbase/couchbase-cli/blob/master/buckets.py#L208-L252
 
#*** https://github.com/couchbase/couchbase-cli/blob/master/buckets.py#L208-L252
 
#* Use cbrestore to do the restore
 
#* Use cbrestore to do the restore
#** <pre>Usage: cbrestore [options] backup_dir destination
+
<pre>Usage: cbrestore [options] backup_dir destination
 
Restores a single couchbase bucket.
 
Restores a single couchbase bucket.
 
Please first create the destination / bucket before restoring. <pre>
 
Please first create the destination / bucket before restoring. <pre>

Latest revision as of 23:41, 18 April 2014

Introduction

This article describes the design and process for backup and restore for Couchbase.

Blueprint

https://blueprints.launchpad.net/trove/+spec/backups-single-instance-couchbase

Future Follow up Blueprints

  1. Support incremental backup restore for Couchbase

Goals

  1. Implement backup and restore strategy for Couchbase

Dependencies

  1. Add support for 'trove root-enable' in Couchbase
  2. Adds backup/restore support for mongodb

Description

  1. Backup strategy
    • Backup directory is /tmp/backups
    • Save bucket metadata config (json file) as part of backup via:
    • Handles root enabled cause by also backing up /tmp/secret_key
    • Use cbbackup to do the backup
    • Backup directory (/tmp/backups) will be zipped up, encrypted, and sent to Swift
    • If no buckets, backup will error out
  1. Restore strategy
Usage: cbrestore [options] backup_dir destination
Restores a single couchbase bucket.
Please first create the destination / bucket before restoring. <pre>