Results 1 to 8 of 8

Thread: ntbackup send email of log files

  1. #1
    Evan Camilleri Guest

    ntbackup send email of log files

    is it possible that once ready, ntbackup send email of log file generated
    during that session?

  2. #2
    nospam@cristalink.com Guest

    Re: ntbackup send email of log files

    You need to write a vbscript or so that launches ntbackup first then sends
    the most recent log file from Document and Settings\username\Local
    Settings\Application Data\Microsoft\Windows NT\NTBackup\data\*.log

  3. #3
    Pegasus \(MVP\) Guest

    Re: ntbackup send email of log files

    You could write a batch file like so:

    @echo off
    1 set Sender=...
    2 set Receiver=...
    3 set Host=...
    4 set Subject=...
    5set folder=Document and Settings\%Username%\Local Settings\Application
    Data\Microsoft\Windows NT\NTBackup\data

    6 echo F | xcopy /d "%Folder%\*.log" "%temp%\Backup.log"
    7 c:\tools\blat.exe "%temp%\Logs\Backup.log" -f %Sender% -to
    %Receiver% -server %Host% -subject "%Subject%"

    Line 6 grabs the most recent log file.
    Line 7 uses one of the many command line mailers that you
    can download, e.g. blat, mailto, sendmail.

  4. #4
    Evan Camilleri Guest

    Re: ntbackup send email of log files

    the problem is where to call the batch file! Either i have to wait enough
    where i know that backup is ready or ??? There is no run this.... batch
    file..... after ready?

  5. #5
    Pegasus \(MVP\) Guest

    Re: ntbackup send email of log files

    This is no problem at all if you do it like so:

    @echo off
    1 set Sender=...
    2 set Receiver=...
    3 set Host=...
    4 set Subject=...
    5set folder=Document and Settings\%Username%\Local Settings\Application
    Data\Microsoft\Windows NT\NTBackup\data

    6 c:\winnt\system32\ntbackup.exe /.. /.. /.. /..
    7 echo F | xcopy /d "%Folder%\*.log" "%temp%\Backup.log"
    8 c:\tools\blat.exe "%temp%\Logs\Backup.log" -f %Sender% -to
    %Receiver% -server %Host% -subject "%Subject%"

    As you see, the batch file will invoke the backup process.
    It will then send you the backup report. Simple

  6. #6
    Evan Camilleri Guest

    Re: ntbackup send email of log files

    I thought that while backup will run, batch file will continue

    Thanks, I WILL try it.

  7. #7
    Pegasus \(MVP\) Guest

    Re: ntbackup send email of log files

    It depends on the application that you invoke with the
    batch file. With ntbackup, the batch file waits until
    ntbackup.exe completes.

  8. #8
    Join Date
    Aug 2011
    Posts
    1

    Re: ntbackup send email of log files

    I use mksbackup.exe instead.

    It write the status of the backup coming from the event log into the mail subject and send the log file but also
    some other useful data like a listing and the free space of the target directory.

    It is a single .exe file that use a .ini configuration file. It can use SSL, TLS and authentication to send email.
    You can also choose between full, incremental or differential backup and the name of the archive depending the day of the backup.

    It is free and well documented.

    hope this help.

Similar Threads

  1. Replies: 4
    Last Post: 23-08-2011, 08:04 AM
  2. Replies: 6
    Last Post: 10-07-2011, 08:26 PM
  3. Replies: 4
    Last Post: 27-02-2011, 04:32 AM
  4. Windows live mail couldn't send email but can receive email
    By danielyen in forum Windows Software
    Replies: 1
    Last Post: 15-07-2010, 12:17 AM
  5. Replies: 2
    Last Post: 14-02-2008, 09:16 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,513,389.94494 seconds with 17 queries