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:
Roland 2025-01-02 12:02:35 -07:00
parent 3285887a1b
commit 8e4d173791
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680
15 changed files with 37 additions and 24 deletions

View file

@ -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

View file

@ -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 \