[skip ci] add debugging info

This commit is contained in:
ansgarz 2021-12-09 18:46:11 +01:00
parent f32a91826d
commit 22ed463637
3 changed files with 12 additions and 5 deletions

View file

@ -13,11 +13,12 @@ function main() {
file_env POSTGRES_USER file_env POSTGRES_USER
file_env RESTIC_DAYS_TO_KEEP 14 file_env RESTIC_DAYS_TO_KEEP 14
echo re-add lines !!!
#disable for faster testing #disable for faster testing
#backup-roles 'oc_' #backup-roles 'oc_'
#backup-db-dump #backup-db-dump
ls -l /var/backups/ ls -l /var/backups/
backup-directory '/var/backups/' # backup-directory '/var/backups/'
end-maintenance.sh end-maintenance.sh
} }

View file

@ -4,7 +4,7 @@ set -Eeox pipefail
function main() { function main() {
start-maintenance.sh # start-maintenance.sh
file_env AWS_ACCESS_KEY_ID file_env AWS_ACCESS_KEY_ID
file_env AWS_SECRET_ACCESS_KEY file_env AWS_SECRET_ACCESS_KEY
@ -13,17 +13,19 @@ function main() {
file_env POSTGRES_PASSWORD file_env POSTGRES_PASSWORD
file_env POSTGRES_USER file_env POSTGRES_USER
drop-create-db echo re-add lines !!!
# drop-create-db
#skip for fast testing #skip for fast testing
#restore-roles #restore-roles
#restore-db #restore-db
restore-directory '/var/backups/' # restore-directory '/var/backups/'
} }
source /usr/local/lib/functions.sh source /usr/local/lib/functions.sh
source /usr/local/lib/pg-functions.sh source /usr/local/lib/pg-functions.sh
source /usr/local/lib/file-functions.sh source /usr/local/lib/file-functions.sh
main main

View file

@ -1,3 +1,7 @@
#!/bin/bash
set -x
function main() function main()
{ {
date date
@ -56,4 +60,4 @@ function main()
kubectl exec -t $POD -- /usr/local/bin/restore.sh kubectl exec -t $POD -- /usr/local/bin/restore.sh
} }
main $@ main "$@"