NOTICE: 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 (

asked 22 Feb '22, 14:21

aviram-s's gravatar image

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 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 ♦
accept rate: 23%

Follow this question

By Email:

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



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "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:


question asked: 22 Feb '22, 14:21

question was seen: 1,637 times

last updated: 22 Feb '22, 14:32

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