Skip to content

About

Send Veeam B&R session summary notifications to Discord, Slack, and Teams.

Topics

Resources

Stars

70 stars

Watchers

5 watching

Forks

Repository files navigation

VeeamNotify

Send Veeam Backup & Replication session summary notifications to Discord, Microsoft Teams, and Slack, detailing session result and statistics and optionally alerting you via mention when a job finishes in a warning or failed state.

VeeamNotify is a replacement for VeeamDiscordNotifications and the respective Teams and Slack projects, featuring improvements across the board and support for all the aforementioned messaging services in one, easy to use project.

Supported Notification Services

  • Discord
  • Slack
  • Microsoft Teams
  • Telegram

Please create a feature request if your preferred service isn't listed here.

Supported Veeam Job Types

  • VM Backup
  • VM Replication
  • Windows & Linux Agent Backup jobs*

*Agent job support

Due to limitations in Veeam, only some types of Agent jobs are supported.

Supported jobs are known as "Agent Backup" or "Managed by backup server". Unsupported jobs are known as "Agent policy" or "Managed by agent". See the spoilered illustration below if this isn't clear to you.

Illustrated screenshot showing an example of supported types

Note: Linux Agent Backup jobs are also supported, this image is only an example.

You can read about the difference between these two Agent job types here.

Unfortunately, even supported Agent jobs return a reduced amount of session information, so you won't see as much detail in the notification (see the example screenshots at the top).
As much relevant information as I've been able to discover from such backup sessions is included in the notifications, but I welcome any suggestions for improvement in this area.

Installation

The installer launches configuration deployment in the shell that matches the installed Veeam PowerShell module:

Veeam Shell
12 Windows PowerShell 5.1 (powershell.exe)
13+ PowerShell 7 (pwsh.exe), using the version required by your Veeam build

Please see the How to Install wiki page.

After upgrading Veeam or switching shells, run resources\DeployVeeamConfiguration.ps1 from your VeeamNotify installation in the matching shell. Pass -InstallParentPath if you installed outside C:\VeeamScripts. The deployer updates standard VeeamNotify hooks; All mode leaves unrelated hooks alone. For manually configured hooks, point the job directly at the matching PowerShell executable with -File and the path to Bootstrap.ps1.

Upgrade VeeamNotify

See How to Upgrade for step-by-step instructions.

Between Veeam jobs, download the current Installer.ps1 and run .\Installer.ps1 -Upgrade from an open PowerShell session outside the VeeamNotify directory. Close any File Explorer windows open in that directory or its subfolders so Windows can rename it. The installer selects the latest stable release by default. Use -InstallParentPath for a custom install location or -Version to select a release.

The installer validates your existing config\conf.json against the target release before replacing any files. It keeps the config unchanged and does not modify Veeam job hooks. The previous installation, including its logs, stays at the backup path printed by the installer. To roll back, move the new VeeamNotify directory aside and rename the backup directory to VeeamNotify while no jobs are running.

Configuration

Default configuration can be found in C:\VeeamScripts\VeeamNotify\config\conf.example.json

Details and examples can be found in the Configuration Options wiki page.


Credits

MelonSmasher//TheSageColleges for the project which inspired me to make this.
dantho281 for various things - Assistance with silly little issues, the odd bugfix here and there, and the inspiration for and first works on the Updater.ps1 script.
Lee_Dailey for general pointers and the first revision of the Format-ByteUnit function.
philenst for committing or assisting with a number of core components of the project.
s0yun for the Installer.ps1 script.

Thank you all.

About

Send Veeam B&R session summary notifications to Discord, Slack, and Teams.

Topics

Resources

Stars

70 stars

Watchers

5 watching

Forks

Releases

Packages

Used by

Contributors

Languages