mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-12-04 21:59:58 -05:00
Converting map blob to use "custom" postgres dump format so restore can use multiple threads. Renaming map db blob from gis-map.dump.gz to map-db-gis.dump.
This commit is contained in:
parent
3285887a1b
commit
8e4d173791
15 changed files with 37 additions and 24 deletions
|
|
@ -9,6 +9,6 @@ Warning: Typically adds 2GB of planetary data.
|
|||
|
||||
Import `map.osm.pbf`, dump to `output.dump`
|
||||
|
||||
`# docker run --rm -v /absolute/path/to/your/map.osm.pbf:/data/region.osm.pbf $(docker build -q .) > output.dump.gz`
|
||||
`# docker run --rm -v /absolute/path/to/your/map.osm.pbf:/data/region.osm.pbf $(docker build -q .) > output.dump`
|
||||
|
||||
See: https://hub.docker.com/r/lrnselfreliance/osm-map-dumper
|
||||
|
|
|
|||
|
|
@ -88,7 +88,8 @@ echo >&2 "Dumping the DB"
|
|||
sudo -u postgres pg_dump \
|
||||
--create \
|
||||
--clean \
|
||||
--format tar \
|
||||
--format custom \
|
||||
--compress 9 \
|
||||
--no-owner \
|
||||
--no-comments \
|
||||
--encoding UTF-8 \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue