From 3a5da7f3d48379c2d8662970b9d6527161591198 Mon Sep 17 00:00:00 2001 From: nihaldivyam Date: Tue, 19 Mar 2024 19:12:33 +0700 Subject: [PATCH] Add condition for check --- logical-backup/dump.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logical-backup/dump.sh b/logical-backup/dump.sh index 9fdb370..c455f4b 100755 --- a/logical-backup/dump.sh +++ b/logical-backup/dump.sh @@ -135,7 +135,7 @@ function upload { esac } -if [ "$LOGICAL_BACKUP_PROVIDER" == "az" ]; then +if [ "$LOGICAL_BACKUP_PROVIDER" == "az" && "$PGDATABASE" == "az" ]; then PATH_TO_BACKUP="${POSTGRES_OPERATOR}/"$SCOPE$LOGICAL_BACKUP_S3_BUCKET_SCOPE_SUFFIX"/logical_backups/"$(date +%Y-%m-%dT%H%M%S) echo Dumping and uploading global items...