hier mein Skript, was wöchentlich läuft und auch funktioniert


#!/bin/bash

# cleaning up bounds directory
cd /home/thomas/mkgmap/bounds && for i in * ; do rm $i ; done

#cleaning up old input and temporary results
cd /home/thomas/mkgmap/
rm bounds.zip
rm europe.osm.pbf
rm europe.o5m
rm europe-boundaries.osm


# getting new europe data
wget http://ftp5.gwdg.de/pub/misc/openstreetmap/download.geofabrik.de/europe.osm.pbf

# converting to o5m to increase speed
/home/thomas/mkgmap/osmconvert32 europe.osm.pbf --out-o5m >europe.o5m

#filter boundaries
/usr/local/bin/osmfilter64 europe.o5m --keep-nodes= --keep-ways-relations="boundary=administrative =postal_code postal_code="  >europe-boundaries.osm

# creating input for Garmin map generation
java -jar /home/thomas/mkgmap/mkgmap-r2165/mkgmap.jar --max-jobs=2 --createboundsfile=europe-boundaries.osm

+ zipping results
zip -r bounds.zip ./bounds