Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions services/backup-daemon/docker/postgres/aws-s3-backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"

Expand Down
6 changes: 3 additions & 3 deletions services/backup-daemon/docker/postgres/postgres_backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"

Expand Down
Loading