X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/95227c6df105f1f9d1612781162c01a7a39c3e3e..dd7f629ab3f1404a2a3ea5a9c4e28c416ecb6e3b:/cookbooks/db/templates/default/backup-db.erb diff --git a/cookbooks/db/templates/default/backup-db.erb b/cookbooks/db/templates/default/backup-db.erb index 4f52e24d1..7cf32f39c 100644 --- a/cookbooks/db/templates/default/backup-db.erb +++ b/cookbooks/db/templates/default/backup-db.erb @@ -5,9 +5,7 @@ D=`date +%Y-%m-%d` F=/store/backup/osm-${D}.dmp -pg_dump --user=backup --format=custom --file=$F openstreetmap - -export RSYNC_RSH="ssh -ax -c arcfour" -rsync $F backup.openstreetmap.org::backup +pg_dump --user=backup --format=custom --file=$F openstreetmap && \ + rsync $F backup.openstreetmap.org::backup rm -f $F