X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/316682c65c7d4de8dde9c25eec5926295b4f2c14..aff3fbe6802d93a8deae8fa2637589c8d28f6681:/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 353e802e4..09711cc43 100644 --- a/cookbooks/nominatim/templates/default/backup-nominatim.erb +++ b/cookbooks/nominatim/templates/default/backup-nominatim.erb @@ -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