How to Backup a SQL Database to a Network Share?
Resolved SQL
SS
Sandra Shaw
November 28, 2026
4 replies
116 views
Reviewed by moderators
3 participants

I want my SQL Server backups on a NAS share. The backup fails when I use my mapped Z drive. How do I do it right?

Accepted answer
Marked as the solution to this question

Use a UNC path and not a mapped drive. SQL Server works as a service, and the service does not see drive letters that you map in your own session. Microsoft states that the service account needs access to the share and that you should use the full UNC name, in the form \\Systemname\ShareName\Path\FileName.

Follow these steps:

1. Create a folder on the NAS and share it.
2. Give the SQL Server service account Modify rights at the share level and at the NTFS level. Use a domain account if the NAS is in the domain.
3. Test the path from the server with a file copy.
4. Execute BACKUP DATABASE [YourDatabase] TO DISK = N'\\nas01\sqlbackup\YourDatabase.bak' WITH CHECKSUM.
5. Execute RESTORE VERIFYONLY on the new file.

Backup works but it is slow on the office network. Any other option?

Save the backup to a local disk first and copy the file to the NAS with a scheduled job. This keeps the backup window short and avoids a failed job when the network drops. Keep the local copy for a few days. Use WITH COMPRESSION on editions that support it, so less data crosses the network, and schedule the copy outside business hours.

UNC path with the service account worked. Thanks.