home · contact · privacy
Fix.
authorChristian Heller <c.heller@plomlompom.de>
Fri, 14 Feb 2020 23:16:31 +0000 (00:16 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Fri, 14 Feb 2020 23:16:31 +0000 (00:16 +0100)
buster/setup_scripts/backup_app.sh

index ca697783dfa66f32a6fa5cb3b4c3ab4fee44b59d..6f9855219001bd07f344c77c5ed10eb334181595 100755 (executable)
@@ -17,7 +17,7 @@ mkdir "${app}_backup"
 
 service "${app}" stop
 
-su postgres -lc "pg_dump -d ${db_name} --format=custom -f ${app}_backup/${db_name}.pgdump"
+su postgres -lc "pg_dump -d ${db_name} --format=custom -f /tmp/${app}_backup/${db_name}.pgdump"
 for target in "$@"; do
     cp -a "${target}" "${app}_backup${target}"
 done