X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;ds=sidebyside;f=buster%2Fsetup_scripts%2Fbackup_app.sh;h=0dfb36eadfe7cf11c4774e008e7d21d9aee997f6;hb=e66194f3ad72d6ae95176482e9b4715523b98866;hp=ca697783dfa66f32a6fa5cb3b4c3ab4fee44b59d;hpb=044b3d25fa674a332cf9a9ea2f7083be56cd3060;p=config
diff --git a/buster/setup_scripts/backup_app.sh b/buster/setup_scripts/backup_app.sh
index ca69778..0dfb36e 100755
--- a/buster/setup_scripts/backup_app.sh
+++ b/buster/setup_scripts/backup_app.sh
@@ -14,10 +14,11 @@ shift 2
cd /tmp
rm -rf "${app}_backup"
mkdir "${app}_backup"
+chmod 777 "${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