Simple shell script used for updating an Open Street Maps server.
Downloads the latest available raw OSM data for the US.
Imports the new data into a postgres database.
Restarts the render service and re-renders the new tiles.
Simply run the script in terminal and enter your user password when prompted.
If cloned to your home folder:
cd ~/osm_server_update
./osm_us-latest-update
The variables can be modified to fit your usage. This script is written for a specific use-case in our environment, please check all PATH variables. I take no responsibility for any potentional harm cause by improper usage of this code.
This script applies to an OSM map server that was built using this guide on Ubuntu 18.04.
Trey Richbourg 11/10/2020