I try to restore SQL Server 2017 Express database using sqlcmd tool on Ubuntu 16 Server.
My SQL command is:
RESTORE DATABASE [xxxxx] FROM DISK = N'/home/xxxxxx/DBBackups/xxxx.bak' WITH NORECOVERY, MOVE 'xxxx_Data' TO '/var/opt/mssql/data/xxxxx.mdf', MOVE 'xxxx_Log' TO '/var/opt/mssql/data/xxxx_log.ldf'
Error message is:
BackupDiskFile::OpenMedia: Backup device '/home/xxxxxx/DBBackups/xxxxxxxx.bak' failed to open. Operating system error 5(Access is denied.).
Using WITH MOVE
option described in this post does not work.
UPDATE
Here's another post and still Access denied error.