<div dir="ltr">> "update in batches approximately monthly" <div><br></div><div>in theory: you can generate an osm change file from 2 osm monthly planet files [ <a href="https://planet.openstreetmap.org/pbf/">https://planet.openstreetmap.org/pbf/</a> ]</div><div><br></div><div>example:</div><div><font face="monospace">first import : planet-220307.osm.pbf ( in the database )<br></font></div><div><font face="monospace">next monthly batch: planet-220404.osm.pbf ( planned import. ) </font></div><div><br></div><div>And using <a href="https://docs.osmcode.org/osmium/latest/osmium-derive-changes.html">https://docs.osmcode.org/osmium/latest/osmium-derive-changes.html</a> </div><div>you can create OSM change files from the two OSM monthly planet files.</div><div><br></div><div><font face="monospace">osmium derive-changes planet-220307.osm.pbf planet-220404.osm.pbf -o <b>planet-diff-220307-220404.osc.bz2</b></font></div><div><br></div><div>in theory, the "planet-diff_220307_220404.osc.bz2" change file is smaller than the sum of ( daily changes files ) </div><div><br></div><div>disclaimer: in theory == not tested in real life.<br></div><div><br></div><div>regards,</div><div> Imre</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Lynn W. Deffenbaugh (Mr) <<a href="mailto:ldeffenb@homeside.to">ldeffenb@homeside.to</a>> ezt írta (időpont: 2022. ápr. 14., Cs, 21:06):<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Greetings fellow tile servers,<br>
<br>
I've just about finished (re)setting up my planet-wide tile server for <br>
the umpteenth time and was wondering what is the current recommendation <br>
for keeping the OSM database current. There are two different approaches <br>
that I've found documented, and I've used both of them in the past. But <br>
for this newest server, I'd like to follow the best practice recommended <br>
by the community.<br>
<br>
Using mod_tile's openstreetmap-tiles-update-expire from<br>
<br>
<a href="https://switch2osm.org/serving-tiles/updating-as-people-edit/" rel="noreferrer" target="_blank">https://switch2osm.org/serving-tiles/updating-as-people-edit/</a><br>
<br>
or use osm2pgsql's osm2pgsql-replication from<br>
<br>
<a href="https://osm2pgsql.org/doc/manual.html#updating-an-existing-database" rel="noreferrer" target="_blank">https://osm2pgsql.org/doc/manual.html#updating-an-existing-database</a><br>
<br>
For a bit of background, I don't need minutely updates, but update in <br>
batches approximately monthly using the daily planetary diffs. After <br>
updating, I re-render all existing tiles that have been affected by the <br>
updates (expired) and then snapshot the end resulting individual PNGs <br>
(extracted from the metatiles directly) to another storage platform.<br>
<br>
Any/all comments are welcome.<br>
<br>
Lynn (D)<br>
<br>
<br>
<br>
_______________________________________________<br>
Tile-serving mailing list<br>
<a href="mailto:Tile-serving@openstreetmap.org" target="_blank">Tile-serving@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/tile-serving" rel="noreferrer" target="_blank">https://lists.openstreetmap.org/listinfo/tile-serving</a><br>
</blockquote></div>