andrewlocatelliwoodcock

Thoughts on Software

Restoring CouchDB databases from file

with one comment


I had a situation recently where I had the database files for several CouchDB databases backed up in source control but no longer had the actual databases available to clone.

What I needed to do was to restore my databases onto a different machine using the database files that were in the source repository.

As it turns out, this is actually pretty simple although not well documented.

CouchDB stores its data files in %COUCHDB%\var\lib\couchdb\ which on my Windows VM equated to C:\Program Files (x86)\Apache Software Foundation\CouchDB\var\lib\couchdb

In order to restore my databases from source control (or any other source where you have stored the physical files for that matter), it was simply a matter of copying them to C:\Program Files (x86)\Apache Software Foundation\CouchDB\var\lib\couchdb

Open Futon afterwards and there are your recovered CouchDB files. Simples!

Written by andrewlocatelliwoodcock

September 22, 2011 at 18:55

Posted in CouchDb

Tagged with ,

One Response

Subscribe to comments with RSS.

  1. I have been reading out several of your articles and i can claim pretty good stuff. I will make sure to bookmark your blog.

    app

    October 11, 2011 at 17:31


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: