Hi @all
I'm trying to implement a local backup & restore procedure, so the client is able to to a full database restore within the app.
Additionally I'm replicating the couchbase lite database to a couchbase server.
Unfortunately exactly this sync is now causing me headaches:
Imagine a local backup created at 2015-11-21 at 13:00.
After creating the backup, I create a document "BadDocument" which is synced to the server at 2015-11-21 at 13:05.
As soon as I restore the backup and start syncing, the document "BadDocument" gets downloaded from the server - which is wrong.
How can I force the server in this situation to reset it's data to the one the customer has on his device (and was restored from the local backup)?
FWIW: I'm using one bucket on the server, holding all data from each customer separated by one-channel-per-customer.