Add convenience scripts

This commit is contained in:
Jonas Juselius
2019-12-18 10:08:28 +01:00
parent 8a1b99544f
commit bd0066f615
4 changed files with 70 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
#!/usr/bin/env bash
pod=`kubectl get pods -n mssql | grep Running | grep consto-ks | cut -d' ' -f1`
bak=`kubectl exec -n mssql $pod ls -- -1 /var/opt/mssql/data/ | grep '.bak$'`
for i in $bak; do
kubectl cp mssql/$pod:/var/opt/mssql/data/$i .
done