From 9fe3df8737f0d2bac1b18ebbcba2e780426fe0cb Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Sat, 15 Feb 2020 00:14:41 +0100 Subject: [PATCH] Fix. --- buster/setup_scripts/backup_app.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/buster/setup_scripts/backup_app.sh b/buster/setup_scripts/backup_app.sh index e3f22e4..1c8e580 100755 --- a/buster/setup_scripts/backup_app.sh +++ b/buster/setup_scripts/backup_app.sh @@ -12,11 +12,11 @@ db_name="$2" shift 2 cd /tmp -rm -rf "/tmp/${app}_backup" +rm -rf "${app}_backup" service "${app}" stop -su postgres -lc "pg_dump -d ${db_name} --format=custom -f ${app}_backup/pgdump" +su postgres -lc "pg_dump -d ${db_name} --format=custom -f ${app}_backup/${db_name}.pgdump" for target in "$@"; do cp -a "${target}" "${app}_backup${target}" done -- 2.30.2