Skip to main content

Restore SQL Server backup into Docker Container

docker exec -it sql1 mkdir /var/opt/mssql/backup
docker cp "C:\wwi.bak" sql1:/var/opt/mssql/backup
view raw docker-sql.ps1 hosted with ❤ by GitHub

sql1 is the SQL Server instance name 

 These commands will copy the ".bak" file into "/var/opt/mssql/backup" directory. You can use the "Restore Database" option in the SQL Server Management Studio to restore the database

Comments