Skip to content

Commit

Permalink
absolute path (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
vivian-rook authored Dec 22, 2023
1 parent 4975adf commit c77f8cd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions db-backup/backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

set -e

kubectl cp ./pg_dump.sh default/superset-postgresql-0:/tmp/pg_dump.sh
kubectl exec -it pod/superset-postgresql-0 -- bash /tmp/pg_dump.sh
kubectl cp default/superset-postgresql-0:tmp/db.tar ./superset-db-backup
/usr/local/bin/kubectl cp ./pg_dump.sh default/superset-postgresql-0:/tmp/pg_dump.sh
/usr/local/bin/kubectl exec -it pod/superset-postgresql-0 -- bash /tmp/pg_dump.sh
/usr/local/bin/kubectl cp default/superset-postgresql-0:tmp/db.tar ./superset-db-backup

mv ./superset-db-backup.4 ./superset-db-backup.5
mv ./superset-db-backup.3 ./superset-db-backup.4
Expand Down

0 comments on commit c77f8cd

Please sign in to comment.