aboutsummaryrefslogtreecommitdiff
path: root/lib/beam/postgres.sh
diff options
context:
space:
mode:
Diffstat (limited to 'lib/beam/postgres.sh')
-rwxr-xr-xlib/beam/postgres.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/beam/postgres.sh b/lib/beam/postgres.sh
index 0eba767..b5a9b6e 100755
--- a/lib/beam/postgres.sh
+++ b/lib/beam/postgres.sh
@@ -45,9 +45,9 @@ postgres_backup() {
logit "backing up PostgreSQL database $database"
test -z "$database" && abend 1 "${1}_database not set"
if [ -z "$dry_run" ]; then
- su postgres -c "pg_dump $verbose $database" > $backup_snapshot_dir/$1-$week-$round-$level
+ su postgres -c "pg_dump $verbose $database" > $backup_tmp_dir/$1-$week-$round-$level
else
- echo "su postgres -c \"pg_dump $verbose $database\" > $backup_snapshot_dir/$1-$week-$round-$level"
+ echo "su postgres -c \"pg_dump $verbose $database\" > $backup_tmp_dir/$1-$week-$round-$level"
fi
if [ $? -ne 0 ]; then
@@ -57,9 +57,9 @@ postgres_backup() {
logit "creating $1-$week-$round-$level.$tar_suffix"
$dry_run tar $verbose $taroptions \
-f $backup_archive_dir/$1-$week-$round-$level.$tar_suffix \
- -C $backup_snapshot_dir $1-$week-$round-$level
+ -C $backup_tmp_dir $1-$week-$round-$level
tarcode $?
- $dry_run rm $backup_snapshot_dir/$1-$week-$round-$level
+ $dry_run rm $backup_tmp_dir/$1-$week-$round-$level
fi
}

Return to:

Send suggestions and report system problems to the System administrator.