Skip to content

Couchdb Replication Sync #4281

Answered by nickva
handerson-caylent asked this question in Q&A
Discussion options

You must be logged in to vote

You could run a pair of replication jobs. A one-shot replication from the source to the new target. Then, make the target the default (production) db. Then perform another one-shot replication from source to target to bring over any document which may have been written there since the start of the previous one, so you don't leave any documents behind. The one-shot (continuous = false) replication will just finish when there are no more document left to replicate.

One subtle moment to keep in mind is that one-shot replication replicate from a snapshot of the database from when they start. So it might not see any documents written since then.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by handerson-caylent
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants