diff options
author | Yuriy Taraday <yorik.sar@gmail.com> | 2017-04-03 12:14:33 +0400 |
---|---|---|
committer | Yuriy Taraday <yorik.sar@gmail.com> | 2017-04-03 12:14:33 +0400 |
commit | af076ce1322d678e7a9e08bbc3bc6ba64a745562 (patch) | |
tree | 557b03daa9ed6931d33e1ef6829a974d02e639ac | |
parent | fee850cf53bb7f263ffb3d8f1a614df092b48cfe (diff) |
Change-Id: I0c005b4245d16a2487e402861f828c280ccf84db
Notes
Notes (review):
Code-Review+2: Andrey Pavlov <apavlov@mirantis.com>
Workflow+1: Andrey Pavlov <apavlov@mirantis.com>
Verified+2: Jenkins
Submitted-by: Jenkins
Submitted-at: Thu, 06 Apr 2017 05:53:48 +0000
Reviewed-on: https://review.openstack.org/452629
Project: openstack/fuel-ccp-cinder
Branch: refs/heads/master
-rw-r--r-- | service/files/backup.sh.j2 | 2 |
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 |
2 | set -o pipefail | 2 | set -o pipefail |
3 | BACKUP_FILE="/var/ccp/backup/cinder/backup-$(date "+%Y%m%d%H%M%S").sql" | 3 | BACKUP_FILE="/var/ccp/backup/cinder/backup-$(date "+%Y%m%d%H%M%S").sql" |
4 | mysqldump {% if db.tls.enabled %} --ssl-mode REQUIRED {% endif %} -h {{ address(service.database) }} \ | 4 | mysqldump {% 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}" |