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

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