Skip to content

[Bug]: Linux backup path is incorrectly passed to remote Windows SQL Server #148

Description

@billy-shang

Hi,

I'm running DBackup in Docker on a Synology NAS and trying to back up a remote Microsoft SQL Server running on Windows.

My architecture is:

Synology NAS
└── Docker
└── DBackup

│ Direct MSSQL connection (TCP 1433)

Windows Server
└── Microsoft SQL Server

The database connection works correctly.

However, when using the local file transfer mode with the default server backup path:

/var/opt/mssql/backup

SQL Server receives this Linux path and attempts to use it relative to its Windows backup directory, resulting in:

Cannot open backup device
'D:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\Backup/var/opt/mssql/backup/xxx.bak'

Operating system error 3
(The system cannot find the path specified.)

I understand from the documentation that MSSQL currently supports two file transfer modes:

Local/shared filesystem

SSH/SFTP

For a remote SQL Server running natively on Windows, neither option is ideal.

Would it be possible to support an SMB/UNC-based MSSQL file transfer workflow, for example:

DBackup (Linux/Docker)

│ BACKUP DATABASE

Windows SQL Server


\synology-nas\sql-backup\database.bak


DBackup reads the .bak via SMB

This would make it possible to use DBackup on a Synology NAS or Linux Docker host to back up remote Windows SQL Server instances without requiring SSH on the Windows server.

Also, does DBackup currently support Windows-style server backup paths such as:

D:\SQLBackup

or UNC paths such as:

\192.168.0.10\SQLBackup

for the Backup Path (Server) setting?

My current SQL Server is SQL Server 2008 R2, which I understand is older than the versions currently listed as officially supported. However, this question also applies to supported SQL Server 2017/2019/2022 instances running natively on Windows.

Thanks!

Image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions