X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/3fed7e7fb72c4bc09aaed299d906c62fbd57e202..e698e02106fc290ff3e530f5de66a91868a7f1f8:/cookbooks/nominatim/templates/default/backup-nominatim.erb?ds=sidebyside diff --git a/cookbooks/nominatim/templates/default/backup-nominatim.erb b/cookbooks/nominatim/templates/default/backup-nominatim.erb index f5cbf657e..757546012 100644 --- a/cookbooks/nominatim/templates/default/backup-nominatim.erb +++ b/cookbooks/nominatim/templates/default/backup-nominatim.erb @@ -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 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