Dumping map in tar format.

This commit is contained in:
Roland 2023-01-11 20:36:19 -07:00
parent 69fab7eee8
commit 90e7d826c8
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93
2 changed files with 9 additions and 2 deletions

View file

@ -3,4 +3,9 @@
A simple container which initializes planetary data, imports an Open Street Map PBF file, then dumps the Postgresql
database contents. Contents are dumped using `pg_dump` __with__ compression.
Warning: Typically adds 1 gigabyte of (compressed) planetary data.
`# docker run --rm -v /absolute/path/to/your/map.osm.pbf:/data/region.osm.pbf $(docker build -q .) > output.dump.gz`
See: https://hub.docker.com/r/lrnselfreliance/osm-map-dumper

View file

@ -87,8 +87,10 @@ fi
echo >&2 "Dumping the DB"
sudo -u postgres pg_dump \
--create \
--clean \
--format tar \
--no-owner \
--encoding UTF-8 \
--dbname gis \
--compress 6
--dbname gis
service postgresql stop