From: Christian Heller Date: Fri, 14 Feb 2020 23:14:41 +0000 (+0100) Subject: Fix. X-Git-Url: https://plomlompom.com/repos/%22https:/validator.w3.org/%7B%7Bdb.prefix%7D%7D/test?a=commitdiff_plain;h=9fe3df8737f0d2bac1b18ebbcba2e780426fe0cb;p=config Fix. --- 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