Backup Notification Linux

Backup agent for Linux servers and workstations on-premises or in the public cloud

Backup Notification Linux

Veeam Logoby rui.rodrigues » Fri Jul 28, 2017 3:02 pm

Hello,

I manage a few dozens of Linux Debian Servers.
I'm making some tests with the latest version available.
I need to receive an email after the backup is made with the resume of the Backup below:

Backup 100% Status: Warning
Summary Data

Duration: 00:05:23 Processed: 9.6 GB (100%)
Processing rate: 32.5 MB/s Read: 9.6 GB
Bottleneck: Target Transferred: 34.5 MB (285.6x)

Time Action Duration

19:40:37 Job BackupJob1 started at 2017-07-25 19:40:37 BST
19:40:37 Preparing to backup
19:40:42 Creating volume snapshot 00:00:01
19:40:43 Starting incremental backup to Repository_1
19:40:55 Backed up sda 9.6 GB at 33.2 MB/s 00:04:58
19:45:53 [warn] Cannot find EFI boot manager utility
19:45:53 Backing up summary.xml 00:00:00
19:45:57 Releasing snapshot 00:00:03
19:46:00 [warn] Processing finished with warnings at 2017-07-25 19:46:00 BST

Is this info in one file only, so that I can attach the info to an email with a script?
If so, where is the location of the log?

I can ony find info very detailed of the backup, in different files.

Every time the BackupJob runs it creates a new folder with log files in it, but I don't need all the information, and Im not able to do a script to read info in a different folder everytime:
/var/log/veeam/Backup/BackupJob1# ls -lat
total 24
drwxr-xr-x 2 root root 4096 Jul 28 15:42 Session_20170728_154205_{20920194-caea-480a-bbe6-aee0db4bc3ee}
drwxr-xr-x 6 root root 4096 Jul 28 15:42 .
drwxr-xr-x 3 root root 4096 Jul 28 14:33 ..
drwxr-xr-x 2 root root 4096 Jul 25 19:40 Session_20170725_194037_{d20f74e4-9ff4-4297-8e92-1face19ebae6}
drwxr-xr-x 2 root root 4096 Jul 21 19:47 Session_20170721_194658_{49a6f90a-bb14-40fa-a864-0310465c9a82}
drwxr-xr-x 2 root root 4096 Jul 21 19:15 Session_20170721_191532_{5c9e048a-39e0-4d84-ad69-2f6465df60a5}

/var/log/veeam/Backup/BackupJob1/Session_20170728_154205_{20920194-caea-480a-bbe6-aee0db4bc3ee}# ls -lat
total 308
-rw-rw-r-- 1 root root 96705 Jul 28 15:48 Job.log
-rw-rw-r-- 1 root root 106287 Jul 28 15:48 Agent.Target.log
-rw-rw-r-- 1 root root 66602 Jul 28 15:48 Agent.Source.log
drwxr-xr-x 2 root root 4096 Jul 28 15:42 .
-rw-rw-r-- 1 root root 28776 Jul 28 15:42 Agent.Repair.log
drwxr-xr-x 6 root root 4096 Jul 28 15:42 ..
rui.rodrigues
Novice
 
Posts: 4
Liked: never
Joined: Thu Feb 23, 2017 10:43 pm
Full Name: Rui Rodrigues

Re: Backup Notification Linux

Veeam Logoby vmniels » Fri Jul 28, 2017 3:13 pm

That specific info is not in a file available. However you can find info in the database (/var/lib/veeam/veeam_db.sqlite). Other options are using scripts after the job has ran showing info based on the sessions (for example veeamconfig session list | grep -e UUID -e Failed | mailx -s "VAL session Failed" someone@somewhere.com )

If you have Veeam Backup & Replication you can send backup to the backup repo there and let it handle the mailflow.
VCP-DCV
Veeam Certified Architect (VMCA)
http://foonet.be
vmniels
Veeam Software
 
Posts: 1623
Liked: 360 times
Joined: Mon Jul 15, 2013 11:09 am
Full Name: Niels Engelen

Re: Backup Notification Linux

Veeam Logoby ManOrs » Thu Aug 03, 2017 4:49 am

Hello,
did you looked here? veeam-agent-for-linux-f41/scripting-t36789-15.html#p207902
i also use it (even if heavily modified)
ManOrs
Influencer
 
Posts: 12
Liked: 2 times
Joined: Tue Dec 20, 2016 6:39 am
Location: Italy
Full Name: Manuel Orsatti

Re: Backup Notification Linux

Veeam Logoby grufo » Wed Sep 27, 2017 7:11 am

I tried to build a notification script which provides nearly the same information as the windows agent notification...

Screenshots and download:
http://blog.grufo.com/2017/09/26/veeam-agent-for-linux-mit-e-mail-bericht-versehen/
grufo
Lurker
 
Posts: 1
Liked: never
Joined: Wed Sep 27, 2017 4:50 am
Full Name: Manfred


Return to Veeam Agent for Linux



Who is online

Users browsing this forum: tz05 and 4 guests