]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/nominatim/templates/default/backup-nominatim.erb
nominatim: add postcode and country tables to backup
[chef.git] / cookbooks / nominatim / templates / default / backup-nominatim.erb
index 03dc01f46a59450179f87688ca55035a48ca3ec2..7575460129830c1266ccd44c96f4a4a321044d1c 100644 (file)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash -e
 
 # DO NOT EDIT - This file is being maintained by Chef
 
@@ -12,8 +12,9 @@
 D=`date +%Y-%m-%d`
 F=/tmp/nominatim-${D}.dmp
 
-pg_dump --file=$F -F c -Z 9 -t 'country' -t file -t '*columns' -t 'import_polygon_*' -t import_status -t place_addressline -t placex -t search_name -t 'seq_*' -t word -t gb_postcode <%= node[:nominatim][:database][:dbname] %>
+pg_dump --file=$F -F c -Z 9 -t file -t country_osm_grid -t '*columns' -t 'import_polygon_*' -t import_status -t place_addressline -t location_property_osmline -t location_postcode -t placex -t search_name -t 'seq_*' -t word <%= @db %>
 
-rsync $F backup.openstreetmap.org::backup
+export RSYNC_RSH="ssh -ax"
+rsync --preallocate --fuzzy $F backup.openstreetmap.org::backup
 
 rm -f $F