Search:

Search all manuals
Search this manual
Manual
Membase Manual 1.7
Additional Resources
Community Wiki
Community Forums
Couchbase SDKs
Parent Section
4.7 Backup and Restore with Membase
Chapter Sections
Chapters

4.7.1. Backup

4.7.1. Linux
4.7.1. Windows

To take a backup of a running Membase node (note, this needs to be performed on all buckets and on all nodes of a cluster to take a backup of that cluster):

Use the mbbackup script to backup data:

mbbackup [bucket_path_name] [dest_dir_path].

Make sure that there is enough disk space to take the backup.

The mbbackup script will also perform a vacuum of the database files to defragment them which provides faster startup times. Depending on the amount of data, this script can take an extended amount of time to run. It is a best practice to make sure that your connection to the server running the script is not broken.

Linux

shell> mbbackup /opt/membase/var/lib/membase/data/default-data /backups/2010-12-22/

Backup the configuration file located at: /opt/membase/var/lib/membase/config/config.dat

Windows

  1. Start a powershell session.

  2. Change the execution policy:

    set-executionpolicy remotesigned
  3. Run the backup:

    shell> mbbackup "C:\Program Files\Membase\Server\var\lib\membase\data\default-data" \
         "C:/backup/2010-12-22/"
  4. Copy the configuration file config.dat located at C:\Program Files\Membase\Server\var\lib\membase\config\config.dat.