X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/b890ca2b63073cca67e0f58620a05d2c28504c91..52fb5028cfb36bf1b9490aea22cde7127dbe00ce:/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 3ad1020c4..7cf32f39c 100644 --- a/cookbooks/db/templates/default/backup-db.erb +++ b/cookbooks/db/templates/default/backup-db.erb @@ -3,10 +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 - -rsync $F backup.openstreetmap.org::backup +pg_dump --user=backup --format=custom --file=$F openstreetmap && \ + rsync $F backup.openstreetmap.org::backup rm -f $F