Dump and load CouchDB databases

  • Install Debian package with source deb couchdump/ (Lenny)
  • Browse the source: source:/couchdb
  • Checkout with svn co svn://
  • Download couchdump 0.3

Suite of scripts to dump and load CouchDB databases. To handle very large databases (read several GB), it dumps every document in a distinct file, and every document attachment is put into a folder associated with the document.

CouchDump is licensed under the GNU GPL 3.0.


Prerequisites :

With Debian, installation is easy:

# echo 'deb couchdump/' > /etc/apt/sources.list.d/bearstech-couchdump.list
# echo 'deb couchdb-perl/' > /etc/apt/sources.list.d/bearstech-couchdb-perl.list
# aptitude update
# aptitude install couchdump

Example usage

Dump the database 'foo' into folder '/var/tmp/foo_dump':

hal:~# couch-dump -d foo -o /var/tmp/foo_dump

Load the database previously dumped:

hal:~# couch-load -d foo -s /var/tmp/foo_dump
Last modified 10 years ago Last modified on Apr 27, 2010, 12:09:36 PM

Attachments (1)

Download all attachments as: .zip