X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/5524a5f2a12c63acc122269b928cf28a4b0ce211..794cc957324de66edab45373053be3e601090f1f:/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 a625a2ef5..573f31a5e 100644 --- a/cookbooks/db/templates/default/backup-db.erb +++ b/cookbooks/db/templates/default/backup-db.erb @@ -1,13 +1,11 @@ -#!/bin/sh +#!/bin/sh -e # DO NOT EDIT - This file is being maintained by Chef 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 --preallocate $F backup.openstreetmap.org::backup +pg_dump --user=backup --format=custom --file=$F openstreetmap && \ + rsync $F backup.openstreetmap.org::backup rm -f $F