[skip ci] remove further backups for fast execution
This commit is contained in:
parent
bab234d4bd
commit
7e176d3ce1
2 changed files with 7 additions and 6 deletions
|
@ -13,7 +13,8 @@ function main() {
|
||||||
file_env POSTGRES_USER
|
file_env POSTGRES_USER
|
||||||
file_env RESTIC_DAYS_TO_KEEP 14
|
file_env RESTIC_DAYS_TO_KEEP 14
|
||||||
|
|
||||||
backup-roles 'oc_'
|
#disable for faster testing
|
||||||
|
#backup-roles 'oc_'
|
||||||
#backup-db-dump
|
#backup-db-dump
|
||||||
echo test-content > /var/backups/tmpfile
|
echo test-content > /var/backups/tmpfile
|
||||||
backup-directory '/var/backups/'
|
backup-directory '/var/backups/'
|
||||||
|
|
|
@ -2,11 +2,6 @@ function main()
|
||||||
{
|
{
|
||||||
local bucket_name="${1:-mybucket}"; shift
|
local bucket_name="${1:-mybucket}"; shift
|
||||||
|
|
||||||
# ./start-k3d.sh
|
|
||||||
|
|
||||||
# source kubectl.sh
|
|
||||||
# kubectl config use-context k3d-nextcloud
|
|
||||||
|
|
||||||
kubectl apply -f https://github.com/jetstack/cert-manager/releases/download/v1.5.4/cert-manager.yaml
|
kubectl apply -f https://github.com/jetstack/cert-manager/releases/download/v1.5.4/cert-manager.yaml
|
||||||
|
|
||||||
kubectl apply -f localstack.yaml
|
kubectl apply -f localstack.yaml
|
||||||
|
@ -39,10 +34,15 @@ function main()
|
||||||
echo
|
echo
|
||||||
|
|
||||||
POD=$(kubectl get pod -l app=backup-restore -o name)
|
POD=$(kubectl get pod -l app=backup-restore -o name)
|
||||||
|
|
||||||
kubectl wait $POD --for=condition=Ready --timeout=240s
|
kubectl wait $POD --for=condition=Ready --timeout=240s
|
||||||
|
|
||||||
kubectl exec -t $POD -- bash -c "echo \"$ENDPOINT k3stesthost cloudhost\" >> /etc/hosts"
|
kubectl exec -t $POD -- bash -c "echo \"$ENDPOINT k3stesthost cloudhost\" >> /etc/hosts"
|
||||||
kubectl exec -t $POD -- /usr/local/bin/init.sh
|
kubectl exec -t $POD -- /usr/local/bin/init.sh
|
||||||
|
|
||||||
|
echo ================= BACKUP =================
|
||||||
kubectl exec -t $POD -- /usr/local/bin/backup.sh
|
kubectl exec -t $POD -- /usr/local/bin/backup.sh
|
||||||
|
echo ================= RESTORE =================
|
||||||
kubectl exec -t $POD -- /usr/local/bin/restore.sh
|
kubectl exec -t $POD -- /usr/local/bin/restore.sh
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue