Simple Script to get Mails from Free Veeam Agent for Linux
vee-mail uses the sqlite database which get's filled from Veeam Agent for Linux Free in /var/lib/veeam/veeam_db.sqlite. The Linux version from Veeam Agent does not send notification e-mails like the windows version. So this script reads the data from the sqlite database and fills it into the template file which get's sent per mail to you.
veeam
sqlite3 (>= 3.7.0)
bc
curl (only for vee-mail update check)
sendmail (your system should be able to send mails with sendmail command - postfix, bsd-mailx, nullmailer,...)
git clone https://github.com/grufocom/vee-mail
move the directory "vee-mail" to /opt or any other directory you would like to install it into
change vee-mail.config file to your needs.
chmod +x vee-mail.sh
You can use the vee-mail script as a post-backup script directly in veeam (Configure - select Job, Advanced/Scripts/Post-Job) or start it manualy after the veeam backup has run:
/opt/vee-mail/vee-mail.sh
add sender address to sendmail command
remove trailing slahes from target path (cifs/smb)
added check for FST is smb - not only cifs
bugfix latin character in mail subject, switched to 8-bit and utf8
bugfix SENDM needs to be set
New parameter for info-mails, you can now set when you would like to get an infomail from vee-mail
Reintegrated background mode
Just cosmetics
Increased the time the script waits until veeam backup is finished
Removed background mode from script
Added debug messages via syslog (logger-tag: vee-mail)
Changed the way "df" is used for free space on backup device
Added more debugging output
Bugfix Release - don't mount local device
Bugfix Release
Check for root user before execution
First release on Github with new name "vee-mail"