Backup SQL Server on the network

SQLBackupAndFTP  creates standard *.bak files when it runs locally on the same computer where SQL Server is. For remote SQL Server computer backups SQLBackupAndFTP creates backup script files (*.sql). Whenever possible, you should always opt for *.bak backups against *.sql backup files.

Here we will show you how to backup a SQL Server on the network to the standard *.bak file even when SQLBackupAndFTP runs on a different computer from where SQL server is. The main requirement in this case is that both SQL server and SQLBackupAndFTP have access to the same shared network folder.

1. Connect to SQL Server on the network

Test your connection in SSMS first – connecting to SQL Server on the network is not always trivial and is a separate subject that is not specific to SQLBackupAndFTP. Then run SQLBackupAndFTP on your local computer, click “Connect to Server”, select “Local SQL Server” as a Server type and enter the same server name, user name and password you’ve used in SSMS.

2. Use a UNC Path as a temporary folder

Specify a UNC path (like \myservershared) in the Temporary folder section:

This folder should be accessible by both the SQL Server account and by SQLBackupAndFTP. Note that the remote share should only be accessed via UNC name. Mapped drives may not be consistently visible to the SQL Service.

3. Set the rest of SQL backup options

As usually in SQLBackupAndFTP select databases to backup, where store the backups (network, NAS, FTP, Dropbox, Amazon S3, Google Drive, OneDrive, Azure, etc), when to schedule Full, Differential and transaction log backups, where to send email confirmations, encryption and other desired options.

4. Run the backup

Press Run Now button to test. If it runs without errors – SQL Server has enough permissions and SQLBackupAndFTP should run without issues on schedule as well.

Important – Permissions!

If you experience problems with this solution, chances are they are related to permissions. The SQL Server service needs to run it under a domain-level account that has FULL CONTROL rights to the file system folder and to the share. SQL server often runs under “NT Service\MSSQLSERVER” account that usually does not have access to the network. To change the SQL Server account:

  1. Open Services app
  2. Find the SQL Server service name (like “SQL Server (SQLEXPRESS)”)
  3. Right Click > Properties, Select the Log On tab
  4. Instead of Local Account, choose “This account” and specify the account with permissions as described earlier

SQLBackupAndFTP account should have the same access rights. – it is simpler if it is running under your personal account (in Advanced settings set “Run scheduled jobs as” to your personal account)

[Total: 1    Average: 5/5]