This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

osm2pgsql restart data import after crash

0

If osm2pgsql import fails for some reason (server rebooting), can you simply kick the process of again, or do you need to clear out the database first?

This is on ubuntu.

asked 26 Jun '13, 01:29

Tangotonyb's gravatar image

Tangotonyb
51337
accept rate: 0%


One Answer:

3

Just start it again and it will clear the tables by itself (assuming you're running in create, not append, mode). It is not possible to continue where you left off though, it will start from scratch.

answered 26 Jun '13, 08:54

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

Source code available on GitHub .