Directory does not exist #675
Replies: 5 comments 4 replies
|
It looks like there is a problem with your directory parameter - UNC paths usually start with two “\” and yours only has a single “\”. |
0 replies
|
No, im using 2 back slashes. You can see it at parameters line below
EXECUTE dbo.DatabaseBackup
@databases = 'GP',
@Directory = '\\SERVIDOR-NAS\BackupSQL',
@BackupType = 'LOG',
@verify = 'Y',
@Cleanuptime = NULL,
@Checksum = 'Y',
@LogToTable = 'Y',
@compress='Y'
I always used it and always worked. Now, with new nas storage this error
happens
|
0 replies
|
Just wondering if you ever found a solution for this. I am having a similar issue. The backups just stopped working and the error is that the directory doesn't exist. There was a password change, but the service is still running so I don't see how it could be a bad password. |
0 replies
|
@DBASam01, I don't know what has occured in your case, but I have this checklist in the Frequently Asked Questions: How do I back up to a network share?
|
1 reply
|
@DBASam01, I can't see that it is an issue in SQL Server. Please share any findings in the comments in this thread. |
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
We bought a new NAS Server (Asustor) and now every time I try to backup SQL I received the error "Directory does not exist" BUT it exist at the NAS Server.
Date and time: 2022-08-24 11:53:52
Server: SERVIDOR-GP\SQLEXPRESS
Version: 12.0.6169.19
Edition: Developer Edition (64-bit)
Platform: Windows
Procedure: [master].[dbo].[DatabaseBackup]
Parameters: @databases = 'GP', @Directory = '\SERVIDOR-NAS\BackupSQL', @BackupType = 'LOG', @verify = 'Y', @Cleanuptime = NULL, @CleanupMode = 'AFTER_BACKUP', @compress = 'Y', @copyonly = 'N', @ChangeBackupType = 'N', @backupsoftware = NULL, @Checksum = 'Y', @Blocksize = NULL, @BufferCount = NULL, @MaxTransferSize = NULL, @NumberOfFiles = NULL, @MinBackupSizeForMultipleFiles = NULL, @MaxFileSize = NULL, @CompressionLevel = NULL, @description = NULL, @threads = NULL, @Throttle = NULL, @Encrypt = 'N', @EncryptionAlgorithm = NULL, @ServerCertificate = NULL, @ServerAsymmetricKey = NULL, @EncryptionKey = NULL, @ReadWriteFileGroups = 'N', @OverrideBackupPreference = 'N', @NoRecovery = 'N', @url = NULL, @credential = NULL, @MirrorDirectory = NULL, @MirrorCleanupTime = NULL, @MirrorCleanupMode = 'AFTER_BACKUP', @MirrorURL = NULL, @AvailabilityGroups = NULL, @Updateability = 'ALL', @AdaptiveCompression = NULL, @ModificationLevel = NULL, @LogSizeSinceLastLogBackup = NULL, @TimeSinceLastLogBackup = NULL, @DataDomainBoostHost = NULL, @DataDomainBoostUser = NULL, @DataDomainBoostDevicePath = NULL, @DataDomainBoostLockboxPath = NULL, @DirectoryStructure = '{ServerName}${InstanceName}{DirectorySeparator}{DatabaseName}{DirectorySeparator}{BackupType}{Partial}{CopyOnly}', @AvailabilityGroupDirectoryStructure = '{ClusterName}${AvailabilityGroupName}{DirectorySeparator}{DatabaseName}{DirectorySeparator}{BackupType}{Partial}{CopyOnly}', @filename = '{ServerName}${InstanceName}{DatabaseName}{BackupType}{Partial}{CopyOnly}{Year}{Month}{Day}{Hour}{Minute}{Second}{FileNumber}.{FileExtension}', @AvailabilityGroupFileName = '{ClusterName}${AvailabilityGroupName}{DatabaseName}{BackupType}{Partial}{CopyOnly}{Year}{Month}{Day}{Hour}{Minute}{Second}{FileNumber}.{FileExtension}', @FileExtensionFull = NULL, @FileExtensionDiff = NULL, @FileExtensionLog = NULL, @Init = 'N', @Format = 'N', @ObjectLevelRecoveryMap = 'N', @ExcludeLogShippedFromLogBackup = 'Y', @DirectoryCheck = 'Y', @StringDelimiter = ',', @DatabaseOrder = NUL...
Version: 2022-01-02 13:58:13
Source: https://ola.hallengren.com
Msg 50000, Nível 16, Estado 1, Procedimento DatabaseBackup, Linha 2276 [Linha de Início do Lote 0]
The directory \SERVIDOR-NAS\BackupSQL does not exist.
Msg 50000, Nível 16, Estado 1, Procedimento DatabaseBackup, Linha 2276 [Linha de Início do Lote 0]
The documentation is available at https://ola.hallengren.com/sql-server-backup.html.
Date and time: 2022-08-24 11:53:52
All reactions