couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Cottlehuber <...@jsonified.com>
Subject Re: Force the start sequence of a replication
Date Thu, 12 Dec 2013 08:51:17 GMT
Salut Zoé

I'm pretty sure you can use `since_seq =  <number> ` in your POST to the
_replicator endpoint.


https://github.com/apache/couchdb/blob/master/src/couch_replicator/src/couch_replicator.erl#L548

This was added in mmm 1.2.x I think. If it works, please confirm back, I
will update docs for it.

A+
Dave



On 12 December 2013 09:16, Zoé Bellot <zoe.bellot@cozycloud.cc> wrote:

> Hello couchDB users,
>
> I would like to replicate two databases with a one-shot replication with a
> filter which takes documents with a field 'docType' equals to File or
> Folder. Once, this replication done, I would like to do a continuous
> replication between these two databases with a filter which takes documents
> with a field 'docType' equals to File or Folder and deleted document.
>
> However, I would like to start the second replication at the last sequence
> of the first replication. I can find the sequence number in the first
> replication information but I don't know how force the second replication
> to start at this sequence.
> Is there a way to do this ?
>
> Thanks for your answer.
>
> Sorry for my english, I'm not a native English speaker.
>
> Zoé
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message