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

[closed] automatic backup?

0

is there a way of automatically downloading the KML file, i.e. from linux command line, in order to restore the current map state in case of vandalism?

asked 15 Feb '16, 10:17

stefxy's gravatar image

stefxy
26223
accept rate: 0%

edited 15 Feb '16, 10:53

scai's gravatar image

scai ♦
33.3k21309459

Is this question about umap? It seems to be a duplicate of https://help.openstreetmap.org/questions/48132/automatic-backup which was tagged umap, but this one isn't.

(15 Feb '16, 10:44) SomeoneElse ♦

yes, this question is about umap and i only realized after i got the answer of malenki that i was supposed to add a umap tag, so i asked it again as https://help.openstreetmap.org/questions/48132/automatic-backup if this is confusing, please remove this first question!

(15 Feb '16, 10:47) stefxy
2

What a waste of time…

(15 Feb '16, 11:14) malenki

The question has been closed for the following reason “AS noted in the comments, this question is a mistagged duplicate of https://help.openstreetmap.org/questions/48132/automatic-backup .” by SomeoneElse 15 Feb ‘16, 10:51


One Answer:

3

Of course, but with OSM these are .osm files.
You may download your desired region with wget as cronjob every night from OSM API (if it is not too big) or from Overpass API. This call

wget "http://overpass.osm.rambler.ru/cgi/xapi_meta?*[bbox=40.52215098562377,19.769210815429688,41.07624551474787,20.48194885253906]" -O - > $(date +%Y-%m-%d)_a_region_in_Albania.osm

will result in a file named 2016-02-15_a_region_in_Albania.osm

Or you are already satisfied with the services download.geofabrik.de offers. For some recent days they have daily backups, then monthly and yearly ones. Just click on "raw directory index on their download site.

answered 15 Feb '16, 10:35

malenki's gravatar image

malenki
4.7k24683
accept rate: 6%

edited 15 Feb '16, 10:42

Source code available on GitHub .