Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Email Notification

Status
Not open for further replies.

jon4crm

MIS
Feb 26, 2004
71
NG
Hi guys in email notification in Windows, how can the backup content be attached. I have email notification in windows configured in my backup domain and am using blat for the email notification configuration. The email notification is notifying me of the status (success or failure) of my backups. Now I want to attach the content of the backups in the email notification. How can I achieve this?

Below is my blat configuration if of email notification

@blat %3 -s %2 -t %1 -i NetBackup -server exchange.xxx.com -q -enriched

Thank you
 
If you use the backup_exit_notify.cmd, the following are already passed and they can be blat'd too:

CLIENT:
POLICY:
SCHEDULE:
SCHEDULE TYPE:
STATUS:
STREAM:

Not real sure what you mean by "content of the backups
 
Thanks GreyWanderer but if am to attach the backup_exit_notify.cmd, where in blat can it be added.

However by "content of the backup", it could be backup selection in the policy. But I really want the list of files backed up. E.g if I choose to back up say c:\ or if I specify c:\ in my backup selection, will it be possible to attach all the content of c:\ (all the files and folders in c:\) backed up in the email notification?
 
You call BLAT from backup_exit_notify.cmd

Here's a little snippet that creates a log of failures only, and then emails the info in the subject line of blat.


@echo %DATE% ----------------------------- >> %OUTF%
@echo %DATE% CLIENT: %1 >> %OUTF%
@echo %DATE% POLICY: %2 >> %OUTF%
@echo %DATE% SCHEDULE: %3 >> %OUTF%
@echo %DATE% SCHEDULE TYPE: %4 >> %OUTF%
@echo %DATE% STATUS: %5 >> %OUTF%
@echo %DATE% STREAM: %6 >> %OUTF%
@echo %DATE% ----------------------------- >> %OUTF%
@REM -------------------------------------------------


@set ADMINS=admin1@your.domain.com,admin2@your.domain.com,
admin3@your.domain.com
@set DT=%DATE%
@set TI=%TIME%
@set ST=%5%
@set CL=%1%
@set PL=%2%
@set SC=%3%
@set FAIL_TXT=failed.Code
@if %ST% GTR 1 goto BlatFail
@goto EndMain
:BlatFail
@echo %DT%,%TI%,%ST%,%CL%,%PL%,%SC%, , , , >> "\report\failure_log.txt"
@Blat "\dummy.txt" -s "%CL% %FAIL_TXT% %ST% "-" %SC%" -t %ADMINS%

@REM - might want to mail this info to someone
@REM -
@REM - @call %NB_MAIL_SCRIPT% someone_who_cares "NetBackup backup exit" %OUTF%
@REM -----------------------------------------------
:EndMain
@endlocal
@REM - End of Main Program -----------------------------------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top