diff --git a/source/maintenance-plan/stored-procedures/dbo.usp_mpDatabaseBackup.sql b/source/maintenance-plan/stored-procedures/dbo.usp_mpDatabaseBackup.sql index 72f50ab..472ed03 100644 --- a/source/maintenance-plan/stored-procedures/dbo.usp_mpDatabaseBackup.sql +++ b/source/maintenance-plan/stored-procedures/dbo.usp_mpDatabaseBackup.sql @@ -490,8 +490,7 @@ IF @flgActions & 4 = 4 -------------------------------------------------------------------------------------------------- SET @maxPATHLength = 259 ---as XP is not yet available on Linux, custom folder structure creation won't be possible -IF NOT (@serverVersionNum >= 14 AND @hostPlatform='linux' ) AND NOT (@backupToURL=1) +IF NOT (@backupToURL=1) begin --create destination path: <@backupLocation>\@sqlServerName\@dbName IF RIGHT(@backupLocation, 1)<>'\' SET @backupLocation = @backupLocation + N'\' diff --git a/source/release-notes.md b/source/release-notes.md index dfa6dd3..cdcb1d4 100644 --- a/source/release-notes.md +++ b/source/release-notes.md @@ -1029,3 +1029,6 @@ * fix issues when destination database collation was different from the server one * health-check: fix table format on backup size details report section * fix "Warning: Null value is eliminated by an aggregate or other SET operation." messages in the execution logs + +14.01.2021 +* maintenance-plan: fix backup directory creation when running under Linux diff --git a/source/setup/install.bat b/source/setup/install.bat index cbc96e8..8d46ab0 100644 --- a/source/setup/install.bat +++ b/source/setup/install.bat @@ -660,7 +660,7 @@ goto done :done -sqlcmd.exe -S%server% %autentif% -Q "SET NOCOUNT ON; UPDATE [dbo].[appConfigurations] SET [value] = N'2021.01.10' WHERE [module] = 'common' AND [name] = 'Application Version'" -d %dbname% -b -r 1 +sqlcmd.exe -S%server% %autentif% -Q "SET NOCOUNT ON; UPDATE [dbo].[appConfigurations] SET [value] = N'2021.01.14' WHERE [module] = 'common' AND [name] = 'Application Version'" -d %dbname% -b -r 1 if errorlevel 1 goto install_err echo *-----------------------------------------------------------------------------* diff --git a/source/setup/update.bat b/source/setup/update.bat index 0c91a24..d76b126 100644 --- a/source/setup/update.bat +++ b/source/setup/update.bat @@ -486,7 +486,7 @@ if errorlevel 1 goto install_err :done -sqlcmd.exe -S%server% %autentif% -Q "SET NOCOUNT ON; UPDATE [dbo].[appConfigurations] SET [value] = N'2021.01.10' WHERE [module] = 'common' AND [name] = 'Application Version'" -d %dbname% -b -r 1 +sqlcmd.exe -S%server% %autentif% -Q "SET NOCOUNT ON; UPDATE [dbo].[appConfigurations] SET [value] = N'2021.01.14' WHERE [module] = 'common' AND [name] = 'Application Version'" -d %dbname% -b -r 1 if errorlevel 1 goto install_err echo *-----------------------------------------------------------------------------*