Version 11 (modified by zecrazytux, 10 years ago) (diff)



Dump and load CouchDB databases

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

Attachments (1)

Download all attachments as: .zip