1
votes

CouchDB<->PouchDB replication for an off-line browser app.

C1 <-- P1
C2 <-- P2
C3 <-- P3

Imagine CouchDB server crashes and I restore from week-old backup.

C3 <-- P3
!!     P3
C2 ??? P3

Will PouchDB state re-sync newer data to CouchDB to be "in sync".

I think the answer is yes. But I'd like to be sure since I'm relying on this as part of my DB server recovery plan.

1

1 Answers

2
votes

Yes, PouchDB will replicate the lost data back to CouchDB.

However, you probably shouldn't rely on your users' databases as your backup plan... Why not have multiple CouchDBs on your server and set them up to do bidirectional replication?