A collection that contains some of the common operations on a MSSQL Service that's running on Docker. This is also based on the article, Dokcer Operations For MSSQL Server which gives you insight on what's happening in the script.
- Unix Shell (Bash / ZSH)
- IntelliJ IDEA (You may use an IDE of your choice)
# import the scipt on your terminal
source ~/where-ever/you/cloned/the/repo/docker-mssql-operations/docker-mssql.sh
# Backing Up
dockerMSSQLBackupDatabase DatabaseName BackupFilePrefix
# Restoring
dockerMSSQLRestoreDatabase DatabaseName /path/to/your/BackupFile.bak
All Done! Enjoy.