mirror of
https://github.com/Microsoft/sql-server-samples.git
synced 2025-12-08 14:58:54 +00:00
@@ -49,7 +49,7 @@ To run this sample, you need the following prerequisites.
|
||||
Once the app is listed as `Ready` the job should run within a minute.
|
||||
You can check if the backup is created by running:
|
||||
```bash
|
||||
kubectl -n [your namespace] exec -it mssql-master-pool-0 -c mssql-server -- /bin/bash -c "ls /var/opt/mssql/data/*.DWConfigbak"
|
||||
kubectl -n [your namespace] exec -it master-0 -c mssql-server -- /bin/bash -c "ls /var/opt/mssql/data/*.DWConfigbak"
|
||||
```
|
||||
You should see a backup being created for every run of the job, with a maximum of 60 backups since the SSIS package cleans up backups older than one hour.
|
||||
You can use any of the `.DWConfigbak` files to restore the database.
|
||||
@@ -80,7 +80,7 @@ name: back-up-db
|
||||
version: v1
|
||||
runtime: SSIS
|
||||
entrypoint: ./back-up-db.dtsx
|
||||
options: /REP V /CONN "MasterSQL"\;"\"Data Source=service-master-pool;User ID=sa;Initial Catalog=master;Password=[SA_PASSWORD]\""
|
||||
options: /REP V /CONN "MasterSQL"\;"\"Data Source=master-svc;User ID=sa;Initial Catalog=master;Password=[SA_PASSWORD]\""
|
||||
schedule: "*/1 * * * *"
|
||||
```
|
||||
|
||||
|
||||
@@ -2,5 +2,5 @@ name: back-up-db
|
||||
version: v1
|
||||
runtime: SSIS
|
||||
entrypoint: ./back-up-db.dtsx
|
||||
options: /REP V /CONN "MasterSQL"\;"\"Data Source=master-0;User ID=sa;Initial Catalog=master;Password=[SA_PASSWORD]\""
|
||||
options: /REP V /CONN "MasterSQL"\;"\"Data Source=master-svc;User ID=sa;Initial Catalog=master;Password=[SA_PASSWORD]\""
|
||||
schedule: "*/1 * * * *"
|
||||
|
||||
Reference in New Issue
Block a user