]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/nominatim/templates/default/backup-nominatim.erb
nominatim: add separate fpm-pool for details
[chef.git] / cookbooks / nominatim / templates / default / backup-nominatim.erb
index f5cbf657e91a4565396bb21c9c30a411c05c67ba..09711cc43de11fee31cab3f8956dea03b4477c52 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 <%= node[:nominatim][:database][:dbname] %>
+pg_dump --file=$F -F c -Z 9 -t file -t '*columns' -t 'import_polygon_*' -t import_status -t place_addressline -t placex -t search_name -t 'seq_*' -t word <%= node[:nominatim][:database][:dbname] %>
 
+export RSYNC_RSH="ssh -ax"
 rsync $F backup.openstreetmap.org::backup
 
 rm -f $F