From 0c400d3105aa0e3c60daf683dfc159331ba575b0 Mon Sep 17 00:00:00 2001 From: Tvion Date: Fri, 4 Sep 2026 19:14:44 +0500 Subject: [PATCH] fix: [PSUPCLCAP-5072] Temp files storage change for backups --- services/backup-daemon/docker/postgres/aws-s3-backup.sh | 8 ++++---- services/backup-daemon/docker/postgres/postgres_backup.sh | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/services/backup-daemon/docker/postgres/aws-s3-backup.sh b/services/backup-daemon/docker/postgres/aws-s3-backup.sh index 82017616..95fa16f9 100755 --- a/services/backup-daemon/docker/postgres/aws-s3-backup.sh +++ b/services/backup-daemon/docker/postgres/aws-s3-backup.sh @@ -129,10 +129,10 @@ function stream_backup_to_aws_s3() { log_info "expected backup size is approximately ${expected_backup_size} bytes." - local validation_pipe="pg-backup-${BACKUP_ID}.pipe" - local pg_basebackup_stderr_file="pg-backup-${BACKUP_ID}.error.log" - local validation_stderr_file="pg-backup-validation-${BACKUP_ID}.error.log" - local storage_client_stdout_file="storage-client-${BACKUP_ID}.log" + local validation_pipe="/tmp/pg-backup-${BACKUP_ID}.pipe" + local pg_basebackup_stderr_file="/tmp/pg-backup-${BACKUP_ID}.error.log" + local validation_stderr_file="/tmp/pg-backup-validation-${BACKUP_ID}.error.log" + local storage_client_stdout_file="/tmp/storage-client-${BACKUP_ID}.log" register_delete_on_exit "${validation_pipe}" "${storage_client_stdout_file}" "${validation_stderr_file}" "${pg_basebackup_stderr_file}" diff --git a/services/backup-daemon/docker/postgres/postgres_backup.sh b/services/backup-daemon/docker/postgres/postgres_backup.sh index b74a9ce8..18f4b190 100755 --- a/services/backup-daemon/docker/postgres/postgres_backup.sh +++ b/services/backup-daemon/docker/postgres/postgres_backup.sh @@ -45,9 +45,9 @@ function do_backup() { fi log BACKUP_ID log "${BACKUP_ID}" - local validation_pipe="${BACKUP_DESTINATION_DIRECTORY}/pg-backup-${BACKUP_ID}.pipe" - local pg_basebackup_stderr_file="${BACKUP_DESTINATION_DIRECTORY}/pg-backup-${BACKUP_ID}.error.log" - local validation_stderr_file="${BACKUP_DESTINATION_DIRECTORY}/pg-backup-validation-${BACKUP_ID}.error.log" + local validation_pipe="/tmp/pg-backup-${BACKUP_ID}.pipe" + local pg_basebackup_stderr_file="/tmp/pg-backup-${BACKUP_ID}.error.log" + local validation_stderr_file="/tmp/pg-backup-validation-${BACKUP_ID}.error.log" register_delete_on_exit "${validation_pipe}" "${validation_stderr_file}" "${pg_basebackup_stderr_file}"