Restore Database SQL Linux

13 de maio de 2020   |   by administrador
RESTORE DATABASE [yourDatabase]
FROM DISK = '/var/opt/mssql/data/yourDatabase.bak'
WITH MOVE 'yourDatabase' TO '/var/opt/mssql/data/yourDatabase.mdf',
MOVE 'yourDatabase_Log' TO '/var/opt/mssql/data/yourDatabase.ldf'
GO

Copiar para o container docker

docker cp backupSQL.bak [container]:/var/opt/mssql/data
Tags: , ,