Hi,

On 07/21/2011 10:07 AM, Andrew Ayre wrote:
What protection is there in Osmosis to recover from this without missing
any changes? If none, how are people solving this in their scripts?

I usually do this:

* get latest changes, save in latest.osc
* if a file named changes-to-apply.osc exists, merge latest.osc into that file; else rename latest.osc to changes-to-apply.osc * run osmosis to apply changes-to-apply.osc to my planet; remove changes-to-apply.osc if successful

But it is possible that this is already over-cautious, and you could just as well run the --rri and --ac in one big step which would then ensure that the state.txt is only updated if the whole thing was successful. I'm not 100% sure about this though.

Bye
Frederik

_______________________________________________
dev mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/dev

Reply via email to