Show desktop notification about last job run of Veeam Agent for Linux
Veeam Agent for Linux is only availbable through CLI interface, and there is no “tray icon” or similar to show the service and jobs status on your desktop environment.
This bash script shows a desktop notification (using “notify-send”) about the latest backup job execution results.
This script can also be lauched from “crontab“.
In the following code, you can change arbitrarily the values of INST_DIR
and SCHEDULE
(execute man 5 crontab
for help on schedule format).
INST_DIR="$(pwd)"
SCHEDULE="00 10 * * Mon-Fri"
cd "$INST_DIR"
git clone https://github.com/fabricat/veeam-result-notify.git
if [ -n "$SCHEDULE" ]; then
(crontab -l | grep -v 'veeam-result-notify'; echo "${SCHEDULE} ${INST_DIR}/veeam-result-notify/veeam-result-notify.sh" ) | crontab -
fi