DevAdmin Blog

Blog di Ermanno Goletto (Microsoft MVP Directory Services - MCITP - MCTS - MCSA - MCP)
posts - 887, comments - 447, trackbacks - 13

My Links

News

Avatar

Curriculum Vitae

Visualizza il profilo di Ermanno Goletto su LinkedIn


Il contenuto di questo blog e di ciascun post viene fornito “così come é”, senza garanzie, e non conferisce alcun diritto. Questo blog riporta il mio personale pensiero che non riflette necessariamente il pensiero del mio datore di lavoro.

Logo Creative Commons Deed


Logo SysAdmin.it SysAdmin.it Staff


Logo TechNet Forum TechNet Italia @ForumTechNetIt Follow TechNet Forum on Twitter


Logo MVP


Ermanno Goletto Follow ermannog on Twitter

Article Categories

Archives

Post Categories

Blogs

Friends

Knowledge Base

MVP Sites

Resources

Invio log NTBACKUP tramite mail

Il seguente batch propone una soluzione per eseguire il backup tramite l'utility NTBACKUP e inviare il log generato tramite mail usando lo script sendmail.vbs.

SETLOCAL
SET user=%UserProfile%
SET folder=%USERPROFILE%\Impostazioni locali\Dati applicazioni\Microsoft\Windows NT\NTBackup\data

REM Eliminazioe log precedenti
DEL /Q "%folder%\backup*.log"

REM Avvio Backup
ntbackup backup C:\Test /m normal /f "F:\backup.bkf" /V:yes /L:f

REM Invio log file Backup
FOR /f "Tokens=*" %%a IN ('dir "%folder%\backup*.log" /b /O-D') DO sendmail.vbs -smtp smtpserver -t BackupOperator@domain.it -f ntbackup@domain.it -s "Backup" -b "See Attach for backup log." -a "%folder%\%%a"

Print | posted on Tuesday, May 16, 2006 9:13 AM | Filed Under [ Links Code, Snippets & Scripts IT ]

Feedback

No comments posted yet.

Post Comment

Title  
Name  
Email
Url
Comment   
Please add 5 and 7 and type the answer here:

Powered by:
Powered By Subtext Powered By ASP.NET