jim60105 / docker-MSSQL-Server

MSSQL Server Containerized Backup and Restoration Solution (Docker-Compose)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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
  2. Edit docker-compose.yml
    • If you want to backup, uncomment the backup service
    • If you want to restore, uncomment the restore service
  3. 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

    docker ps -a 
    docker start docker-mssql-server_backup_1
    docker start docker-mssql-server_restore_1
  • Start from Windows Docker Desktop 2021-06-21 11 53 10

About

MSSQL Server Containerized Backup and Restoration Solution (Docker-Compose)

License:MIT License


Languages

Language:Shell 60.9%Language:Dockerfile 39.1%