X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/7471caa12144cbc7b41c2056b1aed1f0fbcb6a13..ba3b7db315b07e4d4df722571018cde36a09549b:/cookbooks/nominatim/templates/default/backup-nominatim.erb diff --git a/cookbooks/nominatim/templates/default/backup-nominatim.erb b/cookbooks/nominatim/templates/default/backup-nominatim.erb index 03dc01f46..2e008ba42 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 -t gb_postcode <%= 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 -c arcfour" rsync $F backup.openstreetmap.org::backup rm -f $F