Hi Jens,

Are you implying in your response to this question that you can't just 
replace the cblite2 database package and that you must read through the 
backup file, restoring to the current database with the contents of the 
backup file? Does that mean that you would then also have to delete all the 
documents created since the most recent document in the backup database?

Thanks,

Brendan


On Saturday, November 14, 2015 at 12:35:23 PM UTC-7, Jens Alfke wrote:
>
>
> On Nov 14, 2015, at 1:55 AM, [email protected] <javascript:> 
> wrote:
>
> Unfortunately I have no clue, how to create new revisions of each document 
> without modifying it's data. How could this be done?
>
>
> Well, you are modifying its data, by restoring it to an earlier state. 
> (You wouldn’t need to do this to documents that haven’t changed since the 
> backup.)
>
> To restore the earlier state:
>
>    1. Read the old copy of the document from the backup
>    2. Check its revID against the revID of the current document; if 
>    they’re the same, skip this document.
>    3. Update the current document with the properties of the old 
>    document, except for the “_rev” property.
>
>
> Afterwards I've posted this issue in the Couchbase Forums, but there seems 
> to be no activity in this topic.
>
>
> That’s odd; I watch the mobile sub-forums there but I don’t think I saw 
> your post.
>
> —Jens
>

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/24b995c8-bf99-4f0b-9f09-3638c74f11a7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to