diff --git a/logical-backup/dump.sh b/logical-backup/dump.sh index c9c55bc..bbe48e8 100755 --- a/logical-backup/dump.sh +++ b/logical-backup/dump.sh @@ -6,7 +6,7 @@ PG_BIN=$PG_DIR/$PG_VERSION/bin export PGHOST="output-etl-db.modeling.svc.cluster.local" export PGPORT="5432" -pg_dumpall | pigz /tmp/logicalbakup.sql.gz +pg_dumpall > /backup/backup.sql -aws s3 cp s3://bw7-k8s-production-postgres-backup/spilo/output-etl-db/"$LOGICAL_BACKUP_S3_BUCKET_SCOPE_SUFFIX"/ +aws s3 cp /backup/backup.sql s3://bw7-k8s-production-postgres-backup/spilo/output-etl-db/"$LOGICAL_BACKUP_S3_BUCKET_SCOPE_SUFFIX"/