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.
shell> mbbackup /opt/membase/var/lib/membase/data/default-data /backups/2010-12-22/
Backup the configuration file located at:
Start a powershell session.
Change the execution policy:
Run the backup:
shell> mbbackup "C:\Program Files\Membase\Server\var\lib\membase\data\default-data" \ "C:/backup/2010-12-22/"
Copy the configuration file