Files
sql-server-samples/samples/features/sql-big-data-cluster/app-deploy/SSIS
2019-02-24 21:05:45 -08:00
..
2019-02-16 20:49:11 -08:00
2019-02-16 20:49:11 -08:00
2019-02-16 20:49:11 -08:00
2019-02-16 20:49:11 -08:00
2019-02-16 20:49:11 -08:00
2019-02-24 21:05:45 -08:00
2019-02-16 20:49:11 -08:00

About

This is a sample SSIS app, which is a cronjob backing up the DWConfiguration database on the Master SQL Instance on disk every minute.

Refer to installing mssqlctl document on setting up the mssqlctl and connecting to a Aris cluster.

To see the back-up-db.dtsx under the back-up-db.sln, Install Visual Studio 2017 if you don't have it already. Download and install SSDT. When you open the back-up-db.sln, the decryption password can be found in the spec.yaml, i.e. the value after "/De ".

Install SSMS if not already.

How to run

Create the app:

# drop back-up-db.dtsx and spec.yaml in a folder, e.g. name back-up-db
# edit back-up-db.dtsx, replace the value after "Data Source" in the connection string to "service-master-pool;" if not alread. Then deploy it by:
mssqlctl app create --spec ./back-up-db

Check the job:

watch kubectl -n test get job

Once it has completed at least one backup, go to SMSS and restore to see the backup files:

Right click on database DWConfiguration -> Tasks -> Restore -> Database... -> Select "Device" as Source -> Click on "..." -> Add

Clean up:

# delete app
mssqlctl app delete --name back-up-db --version v1
# delete backup files
kubectl -n test exec -it mssql-master-pool-0 -c mssql-server -- /bin/bash -c "rm /var/opt/mssql/data/DWConfiguration_backup*.bak"