]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/db/templates/default/backup-db.erb
Bump cookstyle from 7.28.2 to 7.30.1
[chef.git] / cookbooks / db / templates / default / backup-db.erb
index 492dded40be76318cc17b0612f4275237965834b..7cf32f39ce7b631dca7474a453c98be9a9a8a094 100644 (file)
@@ -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