Skip to content
Snippets Groups Projects
Commit 71d7c0fd authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

set SKIP in output of non available db types

parent cc70724a
Branches
No related tags found
1 merge request!101Desktop notification
...@@ -125,7 +125,7 @@ function restoreByFile(){ ...@@ -125,7 +125,7 @@ function restoreByFile(){
checkRequirements >/dev/null 2>&1 checkRequirements >/dev/null 2>&1
if [ $SERVICEFOUND -eq 0 ]; then if [ $SERVICEFOUND -eq 0 ]; then
echo "__DB__$SERVICENAME INFO: service [$SERVICENAME] is not avilable on this machine." echo "__DB__$SERVICENAME SKIP: service [$SERVICENAME] is not avilable on this machine."
fi fi
case $1 in case $1 in
......
...@@ -31,6 +31,10 @@ FILEDEFS=${DIR_JOBS}/backup-dbfiles.job ...@@ -31,6 +31,10 @@ FILEDEFS=${DIR_JOBS}/backup-dbfiles.job
# make sqlite3 backups of all sqlite = ... in backup-dbfiles.job # make sqlite3 backups of all sqlite = ... in backup-dbfiles.job
function doSqliteBackup(){ function doSqliteBackup(){
if ! _j_getvar ${FILEDEFS} "sqlite" | grep . ; then
echo "__DB__$SERVICENAME SKIP: no entries found for sqlite."
return 0
fi
create_targetdir create_targetdir
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment