Jump to: navigation, search

Trove/backup-restore-single-instance-couchbase

< Trove
Revision as of 23:41, 18 April 2014 by Michayu (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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>