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

add some notifications

parent 7efe01f8
No related branches found
No related tags found
1 merge request!101Desktop notification
......@@ -177,6 +177,7 @@ EOFbackupinfo
if [ $bStart -eq 1 ]; then
j_notify "Start" "Starting a backup run..."
_j_runHooks "100-before-backup"
sleep 3
......@@ -194,6 +195,7 @@ EOFbackupinfo
"${DIR_SELF}"/localdump.sh ALL | tee -a "$JOB_LOGFILE"
rcBackup=$?
test $rcBackup -gt 0 && j_notify "db dumps" "rc=$rcBackup" $rcBackup
echo "INFO: $(date) - local backups were finished" | tee -a "$JOB_LOGFILE"
echo
......@@ -212,6 +214,7 @@ EOFbackupinfo
# "${DIR_SELF}"/transfer.sh $JOBDEF_TYPE "$JOBDEF_AUTO" 2>&1 | tee -a "$JOB_LOGFILE"
"${DIR_SELF}"/transfer.sh $JOBDEF_TYPE "$JOBDEF_AUTO" 2>&1
rcTransfer=$?
test $rcTransfer -gt 0 && j_notify "Transfer Dirs" "rc=$rcTransfer" $rcTransfer
else
echo | tee -a "$JOB_LOGFILE"
......@@ -260,6 +263,7 @@ EOFbackupinfo
# --------------------------------------------------------------------------------
j_notify "Done" "Backup was finished. rc=$rcBackup" $rcBackup
exit $rcBackup
......
......@@ -451,6 +451,7 @@ function setAction(){
touch "${lastprunefile}"
else
rc+=1
j_notify "Prune" "Pruning old data in the repostitory failed." 1
fi
ls -l "${lastprunefile}"
echo
......@@ -466,6 +467,7 @@ function setAction(){
touch "${lastverifyfile}"
else
rc+=1
j_notify "Verify" "Verify of repository data failed." 1
fi
ls -l "${lastverifyfile}"
echo
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment