From 9f6bee2738ec1882e3a9846fa27f11a030f5499c Mon Sep 17 00:00:00 2001 From: fabiopennisi <45417458+fabiopennisi@users.noreply.github.com> Date: Thu, 8 Dec 2022 10:37:01 +0800 Subject: [PATCH] DDBoost Backup Promotion Related to this item: https://github.com/olahallengren/sql-server-maintenance-solution/discussions/702 --- DatabaseBackup.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DatabaseBackup.sql b/DatabaseBackup.sql index 60e4684..e27c1df 100644 --- a/DatabaseBackup.sql +++ b/DatabaseBackup.sql @@ -3736,7 +3736,7 @@ BEGIN IF @DataDomainBoostDevicePath IS NOT NULL SET @CurrentCommand += ' -a "NSR_DFA_SI_DEVICE_PATH=' + REPLACE(@DataDomainBoostDevicePath,'''','''''') + '"' IF @DataDomainBoostLockboxPath IS NOT NULL SET @CurrentCommand += ' -a "NSR_DFA_SI_DD_LOCKBOX_PATH=' + REPLACE(@DataDomainBoostLockboxPath,'''','''''') + '"' SET @CurrentCommand += ' -a "NSR_SKIP_NON_BACKUPABLE_STATE_DB=TRUE"' - SET @CurrentCommand += ' -a "BACKUP_PROMOTION=NONE"' + IF @ChangeBackupType = 'Y' SET @CurrentCommand += ' -a "BACKUP_PROMOTION=ALL"' ELSE SET @CurrentCommand += ' -a "BACKUP_PROMOTION=NONE"' IF @CopyOnly = 'Y' SET @CurrentCommand += ' -a "NSR_COPY_ONLY=TRUE"' IF SERVERPROPERTY('InstanceName') IS NULL SET @CurrentCommand += ' "MSSQL' + ':' + REPLACE(REPLACE(@CurrentDatabaseName,'''',''''''),'.','\.') + '"'