summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--service/files/backup.sh.j22
1 files changed, 1 insertions, 1 deletions
diff --git a/service/files/backup.sh.j2 b/service/files/backup.sh.j2
index 6f659a8..9891a76 100644
--- a/service/files/backup.sh.j2
+++ b/service/files/backup.sh.j2
@@ -1,6 +1,6 @@
1#!/bin/bash -ex 1#!/bin/bash -ex
2set -o pipefail 2set -o pipefail
3BACKUP_FILE="/var/ccp/backup/cinder/backup-$(date "+%Y%m%d%H%M%S").sql" 3BACKUP_FILE="/var/ccp/backup/cinder/backup-$(date "+%Y%m%d%H%M%S").sql"
4mysqldump {% if db.tls.enabled %} --ssl-mode REQUIRED {% endif %} -h {{ address(service.database) }} \ 4mysqldump {% if db.tls.enabled %} --ssl-mode REQUIRED {% endif %} -h {{ address("database") }} \
5 -u {{ cinder.db.username }} -p{{ cinder.db.password }} \ 5 -u {{ cinder.db.username }} -p{{ cinder.db.password }} \
6 --single-transaction {{ cinder.db.name }} > "${BACKUP_FILE}" 6 --single-transaction {{ cinder.db.name }} > "${BACKUP_FILE}"