X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/3ae5b9b4fbb5a637df5a9e8138cd421e0c6e74e7..ce136e365e7258d85a27d44eb2817f881d78d25f:/cookbooks/db/templates/default/backup-db.erb?ds=sidebyside diff --git a/cookbooks/db/templates/default/backup-db.erb b/cookbooks/db/templates/default/backup-db.erb index 04eaeebd7..7cf32f39c 100644 --- a/cookbooks/db/templates/default/backup-db.erb +++ b/cookbooks/db/templates/default/backup-db.erb @@ -3,11 +3,9 @@ # DO NOT EDIT - This file is being maintained by Chef D=`date +%Y-%m-%d` -F=/tmp/osm-${D}.dmp +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