Stephan and Brett, thanks a lot for your advice! I somehow managed to get it working now<br><br>Just a quick summary, for those who might encounter the same issues in the future:<br><br>* Use the pre-compiled binaries rather than compiling the source code<br>
* Configure Osmosis with <i>osmosis --read-replication-interval-init workingDirectory=$WORKDIR_OSM</i><br>* Create the state file with <i>wget <a href="http://toolserver.org/~mazder/replicate-sequences/?2012-08-29T10:00:00Z">http://toolserver.org/~mazder/replicate-sequences/?2012-08-29T10:00:00Z</a> -O $WORKDIR_OSM/state.txt</i> (change the date according to when you have imported the planet file)<br>
* Modify the baseUrl in the configuration.txt file: <i>baseUrl=<a href="http://planet.openstreetmap.org/redaction-period/minute-replicate">http://planet.openstreetmap.org/redaction-period/minute-replicate</a></i> (this is only valid during the redaction period)<br>
* Download the diff files with <i>osmosis --read-replication-interval workingDirectory=$WORKDIR_OSM --simplify-change --write-xml-change $WORKDIR_OSM/changes.osc.gz</i><br>* Update your postgresql database with <i>osm2pgsql --append --slim -d database_name -U user_name –S path_to_style_file -H host -P port $WORKDIR_OSM/changes.osc.gz</i><br>
<br>Just one thing I am not sure about: should the state file be downloaded before we download each diff file? Or only once, before the first diff download?<br><br>Cheers,<br><br>Stéphane<br><br clear="all">--<br>"Le mot progrès n'aura aucun sens tant qu'il y aura des enfants malheureux" -- Albert Einstein<br>
<br>"A journey does not need reasons. Before long, it proves to be reason enough in itself. One thinks that one is going to make a journey, yet soon it is the journey that makes or unmakes you." -- Nicolas Bouvier<br>
<br>Photos de voyages, photos de montagne: <a href="http://www.henriod.info/" target="_blank">http://www.henriod.info</a><span dir="ltr"><span dir="ltr" title="Appeler ce numéro de téléphone en/au(x) Tadjikistan avec Skype : +992934624662"><span> </span></span> <br>
</span><br>
<br><br><div class="gmail_quote">On Mon, Sep 3, 2012 at 2:56 PM, Stephan Knauss <span dir="ltr"><<a href="mailto:osm@stephans-server.de" target="_blank">osm@stephans-server.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Stéphane Henriod writes: <br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
This error message talks about a config file $WORKDIR_OSM/configuration.txt<br>
but I don't have any at this location... Should I create it myself? And<br>
what should it contain?<br>
</blockquote>
<br>
have osmosis create it and edit it to match your state.txt. <br>
See the wiki:<br>
<a href="http://wiki.openstreetmap.org/wiki/Osmosis/DetailedUsage#--read-replication-" target="_blank">http://wiki.openstreetmap.org/<u></u>wiki/Osmosis/DetailedUsage#--<u></u>read-replication-</a><br>
interval-init_.28--rrii.29 <br><span class="HOEnZb"><font color="#888888">
Stephan<br>
<br>
</font></span></blockquote></div><br>