X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/a89fcb86b3cfd2e446af81045d053f6c06c1c9f9..ce136e365e7258d85a27d44eb2817f881d78d25f:/cookbooks/db/templates/default/backup-db.erb?ds=inline diff --git a/cookbooks/db/templates/default/backup-db.erb b/cookbooks/db/templates/default/backup-db.erb index 492dded40..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" -rsync $F backup.openstreetmap.org::backup +pg_dump --user=backup --format=custom --file=$F openstreetmap && \ + rsync $F backup.openstreetmap.org::backup rm -f $F