Description of the issue
Recently upgraded ola scripts via DBATools. In some of our instances our default backup location was configured to a folder location that didn't exist. This results in the job erroring, even when the @Directory variable is configured correctly. The default path needs to be updated before the job will succeed.
SQL Server version and edition
Occurs on version 2016/17/19. Don't have others installed to try. All Enterprise.
Version of the script
2022-12-03 17:23:44
What command are you executing?
All Full/Diff/Log standard backup jobs.
EXECUTE [dbo].[DatabaseBackup]
@Databases = 'USER_DATABASES',
@Directory = '\\BackupServer\SQLBackups\',
@BackupType = 'FULL',
@Verify = 'Y',
@CleanupTime = 48,
@CheckSum = 'Y',
@LogToTable = 'Y',
@Compress = 'Y'
What output are you getting?
The directory \\OldBackupServer\SQLBackups\ServerName\ does not exist. -- \OldBackupServer\SQLBackups\ServerName\ is set in the instance properties as the 'default backup location'
Description of the issue Recently upgraded ola scripts via DBATools. In some of our instances our default backup location was configured to a folder location that didn't exist. This results in the job erroring, even when the @Directory variable is configured correctly. The default path needs to be updated before the job will succeed.
SQL Server version and edition Occurs on version 2016/17/19. Don't have others installed to try. All Enterprise.
Version of the script 2022-12-03 17:23:44
What command are you executing? All Full/Diff/Log standard backup jobs.
EXECUTE [dbo].[DatabaseBackup] @Databases = 'USER_DATABASES', @Directory = '\\BackupServer\SQLBackups\', @BackupType = 'FULL', @Verify = 'Y', @CleanupTime = 48, @CheckSum = 'Y', @LogToTable = 'Y', @Compress = 'Y'
What output are you getting? The directory \\OldBackupServer\SQLBackups\ServerName\ does not exist. -- \OldBackupServer\SQLBackups\ServerName\ is set in the instance properties as the 'default backup location'