Skip to content

Commit

Permalink
fix backup directory creation when running under Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-andreistefan committed Jan 14, 2021
1 parent 09cd93a commit e023323
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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'\'
Expand Down
3 changes: 3 additions & 0 deletions source/release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion source/setup/install.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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 *-----------------------------------------------------------------------------*
Expand Down
2 changes: 1 addition & 1 deletion source/setup/update.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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 *-----------------------------------------------------------------------------*
Expand Down

0 comments on commit e023323

Please sign in to comment.