Add manual mode to the created backup file name
This PS helps us understand the mode of backup taken from the created backup file name. Supporting PS: https://review.opendev.org/c/airship/porthole/+/793591 Change-Id: I96c8b856fc309381f8d956eaae248bfc3443d900
This commit is contained in:
parent
948e07e151
commit
6d4dcc2474
@ -15,7 +15,7 @@ apiVersion: v1
|
|||||||
appVersion: v1.0.0
|
appVersion: v1.0.0
|
||||||
description: OpenStack-Helm Helm-Toolkit
|
description: OpenStack-Helm Helm-Toolkit
|
||||||
name: helm-toolkit
|
name: helm-toolkit
|
||||||
version: 0.2.15
|
version: 0.2.16
|
||||||
home: https://docs.openstack.org/openstack-helm
|
home: https://docs.openstack.org/openstack-helm
|
||||||
icon: https://www.openstack.org/themes/openstack/images/project-mascots/OpenStack-Helm/OpenStack_Project_OpenStackHelm_vertical.png
|
icon: https://www.openstack.org/themes/openstack/images/project-mascots/OpenStack-Helm/OpenStack_Project_OpenStackHelm_vertical.png
|
||||||
sources:
|
sources:
|
||||||
|
@ -22,6 +22,7 @@
|
|||||||
# export REMOTE_DAYS_TO_KEEP Number of days to keep the remote backups
|
# export REMOTE_DAYS_TO_KEEP Number of days to keep the remote backups
|
||||||
# export ARCHIVE_DIR Local location where the backup tarballs should
|
# export ARCHIVE_DIR Local location where the backup tarballs should
|
||||||
# be stored. (full directory path)
|
# be stored. (full directory path)
|
||||||
|
# export BACK_UP_MODE Determines the mode of backup taken.
|
||||||
# export REMOTE_BACKUP_ENABLED "true" if remote backup enabled; false
|
# export REMOTE_BACKUP_ENABLED "true" if remote backup enabled; false
|
||||||
# otherwise
|
# otherwise
|
||||||
# export CONTAINER_NAME Name of the container on the RGW to store
|
# export CONTAINER_NAME Name of the container on the RGW to store
|
||||||
@ -314,7 +315,11 @@ backup_databases() {
|
|||||||
log INFO "${DB_NAME}_backup" "Databases dumped successfully. Creating tarball..."
|
log INFO "${DB_NAME}_backup" "Databases dumped successfully. Creating tarball..."
|
||||||
|
|
||||||
NOW=$(date +"%Y-%m-%dT%H:%M:%SZ")
|
NOW=$(date +"%Y-%m-%dT%H:%M:%SZ")
|
||||||
TARBALL_FILE="${DB_NAME}.${DB_NAMESPACE}.${SCOPE}.${NOW}.tar.gz"
|
if [[ -z "${BACK_UP_MODE}" ]]; then
|
||||||
|
TARBALL_FILE="${DB_NAME}.${DB_NAMESPACE}.${SCOPE}.${NOW}.tar.gz"
|
||||||
|
else
|
||||||
|
TARBALL_FILE="${DB_NAME}.${DB_NAMESPACE}.${SCOPE}.${BACK_UP_MODE}.${NOW}.tar.gz"
|
||||||
|
fi
|
||||||
|
|
||||||
cd $TMP_DIR || log_backup_error_exit "Cannot change to directory $TMP_DIR"
|
cd $TMP_DIR || log_backup_error_exit "Cannot change to directory $TMP_DIR"
|
||||||
|
|
||||||
|
@ -22,4 +22,5 @@ helm-toolkit:
|
|||||||
- 0.2.13 Modify connection args for s3 bucket creation when TLS is enabled
|
- 0.2.13 Modify connection args for s3 bucket creation when TLS is enabled
|
||||||
- 0.2.14 Remove TLS_OPTION argument from s3 bucket creation job
|
- 0.2.14 Remove TLS_OPTION argument from s3 bucket creation job
|
||||||
- 0.2.15 Adding TLS rabbitmq logic
|
- 0.2.15 Adding TLS rabbitmq logic
|
||||||
|
- 0.2.16 Add manual mode to the created backup file name
|
||||||
...
|
...
|
||||||
|
Loading…
Reference in New Issue
Block a user