https://github.com/jim60105/docker-mssql-server
MSSQL Server Containerized Backup and Restoration Solution (Docker-Compose)
https://github.com/jim60105/docker-mssql-server
bash docker docker-compose sql-server
Last synced: 5 months ago
JSON representation
MSSQL Server Containerized Backup and Restoration Solution (Docker-Compose)
- Host: GitHub
- URL: https://github.com/jim60105/docker-mssql-server
- Owner: jim60105
- License: mit
- Created: 2021-06-17T09:56:38.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-06-03T09:26:00.000Z (about 2 years ago)
- Last Synced: 2024-10-04T18:21:11.758Z (over 1 year ago)
- Topics: bash, docker, docker-compose, sql-server
- Language: Shell
- Homepage:
- Size: 51.8 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MSSQL on Docker + Backup
Chinese
| English
## Configuration
> If the backup location is in My Network Places, please use the CIFS branch.
1. Please refer to `*.env_sample` to create `*.env`
- `SA_PWD`: Your database SA password
- `CIFS_OPTION`: user=YOUR_CIFS_ACCOUNT,password=YOUR_CIFS_PASSWORD (this setting is for CIFS branch only)
- `BACKUP_FOLDER`: The absolute path of the database synchronization directory, for example `D:\docker-MSSQL-Server\backup`, `//192.168.0.1/backup`
1. Edit `docker-compose.yml`
- If you want to backup, uncomment the backup service
- If you want to restore, uncomment the restore service
1. `docker-compose up -d`
## Manual Backup and Restore
The backup and restore containers will stop after execution, just start the container to perform the operation.
- View the container name and start
```sh
docker ps -a
docker start docker-mssql-server_backup_1
docker start docker-mssql-server_restore_1
```
- Start from Windows Docker Desktop
