项目作者: fabricat

项目描述 :
Show desktop notification about last job run of Veeam Agent for Linux
高级语言: Shell
项目地址: git://github.com/fabricat/veeam-result-notify.git
创建时间: 2019-02-20T09:40:46Z
项目社区:https://github.com/fabricat/veeam-result-notify

开源协议:GNU General Public License v3.0

下载


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.

Requirements

  • Veeam Agent for Linux version 3 must be installed and configured
  • the script must be run by a user in the “veeam” group (needed by “veeamconfig”)
  • the “notify-send“ command must be installed
    (package “libnotify-bin“ on Debian-based distros)

:thumbsup: This script can also be lauched from “crontab“.

Installation

In the following code, you can change arbitrarily the values of INST_DIR and SCHEDULE
(execute man 5 crontab for help on schedule format).

  1. INST_DIR="$(pwd)"
  2. SCHEDULE="00 10 * * Mon-Fri"
  3. cd "$INST_DIR"
  4. git clone https://github.com/fabricat/veeam-result-notify.git
  5. if [ -n "$SCHEDULE" ]; then
  6. (crontab -l | grep -v 'veeam-result-notify'; echo "${SCHEDULE} ${INST_DIR}/veeam-result-notify/veeam-result-notify.sh" ) | crontab -
  7. fi

Tested on:

  • Linux Mint 19 Tara + Cinnamon
  • Linux Mint 18.3 Sylvia + Cinnamon