create db/backup folder if it dosnt exist

This commit is contained in:
Rafael Schouten
2014-10-18 01:42:58 +11:00
parent 577cb06371
commit 87cc1d6217

View File

@@ -4,4 +4,5 @@
set -e
mkdir -p db/backup
ssh $1 "pg_dump -h localhost -U openfoodweb openfoodweb_production |gzip" > db/backup/$1-`date +%Y%m%d`.sql.gz