Merge "Add check SSL for backup"

This commit is contained in:
Jenkins 2017-03-01 08:01:47 +00:00 committed by Gerrit Code Review
commit dfd987fa4a
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
#!/bin/bash -ex
set -o pipefail
BACKUP_FILE="/var/ccp/backup/cinder/backup-$(date "+%Y%m%d%H%M%S").sql"
mysqldump -h {{ address(service.database) }} \
mysqldump {% if db.tls.enabled %} --ssl-mode REQUIRED {% endif %} -h {{ address(service.database) }} \
-u {{ cinder.db.username }} -p{{ cinder.db.password }} \
--single-transaction {{ cinder.db.name }} > "${BACKUP_FILE}"