mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-12-01 12:26:19 -05:00
Dumping map in tar format.
This commit is contained in:
parent
69fab7eee8
commit
90e7d826c8
2 changed files with 9 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue