Skip to content

Commit

Permalink
Fix minor bash issues
Browse files Browse the repository at this point in the history
  • Loading branch information
lewisgoddard committed Apr 19, 2017
1 parent abbbbdd commit 7c390d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _cron/hourly/backup-database.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
cd ~/Server/phoenix/_backups
cd ~/Server/phoenix/_backups || exit BACKUP_DIR_NOT_FOUND
mysqldump \
--allow-keywords \
--replace \
Expand All @@ -12,4 +12,4 @@ mysqldump \
--verbose \
-u'phoenix' \
-p'Password1' \
phoenix > phoenix.`date +\%Y\%m\%d_\%H\%M`.sql
phoenix > "phoenix.$(date +\%Y\%m\%d_\%H\%M).sql"

0 comments on commit 7c390d5

Please sign in to comment.