incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Newson <rnew...@apache.org>
Subject Re: copy docs from one db to another?
Date Mon, 25 Mar 2013 22:02:43 GMT
http://wiki.apache.org/couchdb/Replication#Named_Document_Replication

On 25 March 2013 22:00, Mark Hahn <mark@hahnca.com> wrote:
> Sorry to be an idiot, but how do i do a named replication?
>
>
>
> On Mon, Mar 25, 2013 at 2:52 PM, Matthieu Rakotojaona <
> matthieu.rakotojaona@gmail.com> wrote:
>
>> On Mon, Mar 25, 2013 at 10:35 PM, Mark Hahn <mark@hahnca.com> wrote:
>> > I have a database with a zillion docs that I need to empty.  I just want
>> > the design docs left behind.  I googled and saw some techniques that
>> > require writing code.
>> >
>> > Could I just GET the docs with curl and then PUT them?
>> >
>> > Any other way to do it?
>>
>> 1. Named replication of the design docs to a "db-tmp"
>> 2. Delete the "db" file (I assume you have access to the underlying files)
>> 3. Replicate the other way around
>>
>>
>> --
>> Matthieu RAKOTOJAONA
>>

Mime
View raw message