couchtool

couchtool is a simple backup/restore tool for Apache CouchDB and databases compatible with its API.
The on disk format used is one file per document/attachment. This was chosen so that the backups are easily rsnapshot-able, without making a full copy on each snapshot.

Installation

Usage

Show database info:

Create backup:

Restore from backup:

By default the the docs will be split in 10 directories docs.0/ to docs.9/. If you want to change the number of directories you can use –buckets :

You can use the buckets command to find appropriate bucket number for large databases:

Also the documents can be stored gziped on disk with –gzip :

Source code

GitHub

Todo

  • Support couchapps
  • Connect to CouchDB over SSH