NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

I've built a working tile server from the switch2osm instructions.
Since the server has no internet access, I need to find a way to keep the data up to date.
I found many scripts/services that fetch the new data from osm and update the db automatically but since I have no internet connection they can not be used
Is there any way to manually download the xml change set from internet access computer and update the db (https://planet.openstreetmap.org/planet/changesets-latest.osm.bz2)?

asked 22 Feb '22, 14:21

aviram-s's gravatar image

aviram-s
11113
accept rate: 0%

edited 22 Feb '22, 14:26


You have the wrong file - what you need is not the changeset file but a series of "diffs" from https://planet.openstreetmap.org/replication/ that cover the whole time from when you did the server setup to now.

The manual process is:

  • download all files individually
  • optionally merge them into a larger file with osmosis or osmium
  • copy the individual files or the combined file onto the tile server machine
  • apply the individual files or the combined file to your database with osm2pgsql using the exact same command line flags as on the initial import but use the --append flag instead of --create (which is the default)

You could also use osmosis or pyosmium-get-changes to make this easier for you, as these tools have the option of saving their last replication state, so you could let them "download all since last time" and you would not have to go through the hassle of downloading individual files.

Note that updating with diffs only makes sense as long as your data is not older than three or four weeks; once your data is older than that, a full new import is faster than trying diff updates.

permanent link

answered 22 Feb '22, 14:32

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×263
×199
×134
×106
×34

question asked: 22 Feb '22, 14:21

question was seen: 2,110 times

last updated: 22 Feb '22, 14:32

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum