From 60f9905631fbca4b98e2ff555321fa76f2145cce Mon Sep 17 00:00:00 2001
From: "Hahn Axel (hahn)" <axel.hahn@unibe.ch>
Date: Tue, 12 Mar 2024 11:32:29 +0100
Subject: [PATCH] set ARCHIVE_DIR

---
 localdump.sh | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/localdump.sh b/localdump.sh
index d2881dc..88a9fce 100755
--- a/localdump.sh
+++ b/localdump.sh
@@ -413,6 +413,7 @@
           BACKUP_PARAMS=$( dbdetect.getParams )
 
           BACKUP_TARGETDIR=${BACKUP_BASEDIR}/${PROFILENAME}
+          ARCHIVE_DIR=$(_j_getvar "${JOBFILE}" dir-dbarchive)/${PROFILENAME}
           BACKUP_SCRIPT=$( get_service_script ${SERVICENAME} )
 
           # ----- start service specific script
@@ -527,6 +528,10 @@
 
             # ------ unset env
             eval $( dbdetect.unssetenv )
+          else
+            color error 
+            echo "ERROR: Profile $PROFILENAME was detected but its database service is not available."
+            color.reset
           fi
 
       fi
-- 
GitLab