How to Backup SQL Server Running in Docker on Linux
I am using mssql server in docker container.
How to Backup SQL Server Running in Docker on Linux

- I am using mssql server in docker container.
- I am using vscode extension named SQL Server (mssql) by microsoft. This extension gives you the feature of creating and exporting the backup
- Connect to the database. It should look like this:

- Create a backup by using that extension.

Note: I have saved backup inside the folder /var/opt/mssql/data/
docker exec <container_name> ls /var/opt/mssql/data/*.bak
- Copy backup file from docker to host machine:
docker cp <container_name>:/var/opt/mssql/data/your_backup.bak ~/Documents/your_backup.bak
Originally published at https://ravindradevrani.com.
메타데이터
- post_id
- f981ffa6aa49
- slug
- how-to-backup-sql-server-running-in-docker-on-linux-f981ffa6aa49
- url
- https://towardsdev.com/how-to-backup-sql-server-running-in-docker-on-linux-f981ffa6aa49
- canonical_url
- https://towardsdev.com/how-to-backup-sql-server-running-in-docker-on-linux-f981ffa6aa49
- author_url
- https://medium.com/@ravindradevrani
- status
- ok
- fetched_at
- 2026-06-09 15:37:30