Skip to content

Commit

Permalink
fix mysqldump commands
Browse files Browse the repository at this point in the history
  • Loading branch information
André Bauer committed Feb 12, 2017
1 parent 22e37a9 commit 2203830
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/backup/functions
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function backup_files () {

function backup_db () {
if [ "${DB_ADAPTER}" == "mysql2" ]; then
mysqldump --opt --single-transaction ${DB_NAME} | gzip > ${BACKUP_DIR}/${TIMESTAMP}_zammad_db.mysql.gz
mysqldump --opt --single-transaction -u${DB_USER} -p${DB_PASS} ${DB_NAME} | gzip > ${BACKUP_DIR}/${TIMESTAMP}_zammad_db.mysql.gz
elif [ "${DB_ADAPTER}" == "postgresql" ]; then
su -c "pg_dump ${DB_NAME} | gzip > ${BACKUP_DIR}/${TIMESTAMP}_zammad_db.psql.gz" postgres
else
Expand Down

0 comments on commit 2203830

Please sign in to comment.