From: Christian Heller Date: Fri, 14 Feb 2020 23:14:41 +0000 (+0100) Subject: Fix. X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/static/%7B%7Byoutube_prefix%7D%7D%7B%7Bvideo_id%7D%7D?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