Announcement

Collapse
No announcement yet.

Setting Report of ntbackup

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Setting Report of ntbackup

    I setting NTBackup and schedul already can see the log report on NTBackup.

    I need to setting user for see report NTBackup.




    Step;

    1.Create a new user to remote desktop group and Backup Group


    How to setting for new user can see report of at NTBackup 's Admin session ?

    Becusz. when i remote via new user cannot see report of NTBackup 's Admin seesion.

  • #2
    Re: Setting Report of ntbackup

    How about if you create a new user account for use on the 2003 server - call it 2003backup or whatever you like.

    Next, create a scheduled task to run ntbackup and specify the account credentials it should use when the backup is run.

    Any of your trusted staff can then log on using the new user account and view the logs which are stored at:

    \\servername\c$\Documents and Settings\2003backup\Local Settings\Application Data\Microsoft\Windows NT\NTBackup\data
    A recent poll suggests that 6 out of 7 dwarfs are not happy

    Comment


    • #3
      Re: Setting Report of ntbackup

      That you mean i can't setting user for backup opertor see log on NTbackup program or not.


      But i can set shared folder for user backup opertor see the log via txt file.

      Comment


      • #4
        Re: Setting Report of ntbackup

        IIRC the NTBackup Log has never been directly viewable, just saved to a text file as Blood has said
        Tom Jones
        MCT, MCSE (2000:Security & 2003), MCSA:Security & Messaging, MCDBA, MCDST, MCITP(EA, EMA, SA, EDA, ES, CS), MCTS, MCP, Sec+
        PhD, MSc, FIAP, MIITT
        IT Trainer / Consultant
        Ossian Ltd
        Scotland

        ** Remember to give credit where credit is due and leave reputation points where appropriate **

        Comment


        • #5
          Re: Setting Report of ntbackup

          Originally posted by momaydopod View Post
          ...


          But i can set shared folder for user backup opertor see the log via txt file.
          Yes - that would would be a much better solution.

          Share the data folder and add a user group to the permissions of that folder with whatever permissions you want your staff to have. Then add their accounts to the security group.
          A recent poll suggests that 6 out of 7 dwarfs are not happy

          Comment


          • #6
            Re: Setting Report of ntbackup

            You can also script this with this handy bit of VB code so NTbackup sends you the log via email. I still use this method on an SBS server iv been supporting for 10 years.

            Edit line 12 with the email recipients (DList), line 47 & 74 with the domain name, line 56 & 81 with the IP address of your smtp relay. Set as a scheduled task and you have a simple automated solution.

            ############################################
            ' Dim variables
            Dim oFSO, oWshNetwork, oCDO, oFolder, oFiles, oFile
            dim strFileName, strComputerName

            ' Create Objects
            Set oFSO = CreateObject("Scripting.FileSystemObject")
            Set oWshNetwork = WScript.CreateObject("WScript.Network")


            ' Set constants
            Const BACKUP_LOG_PATH = "C:\Documents and Settings\Administrator\Local Settings\Application Data\Microsoft\Windows NT\NTBackup\data"
            Const EMAIL_RECIPIENT = "[email protected]"

            ' Set variable defaults
            strFileName = ""
            strComputerName = oWshNetwork.ComputerName

            ' Start script
            Set oFolder = oFSO.GetFolder(BACKUP_LOG_PATH)

            Set oFiles = oFolder.Files

            For Each oFile in oFiles
            If oFSO.GetExtensionName(oFile.Name) = "log" Then
            If DateValue(oFile.DateLastModified) = Date() Then
            strFileName = oFile.Name
            Exit For
            End If
            End If
            Next

            If strFileName <> "" Then

            EmailLog(strFileName)

            Else

            EmailError

            End If

            Sub EmailLog(logFilePath)

            Set oCDO = CreateObject("CDO.Message")

            oCDO.Subject = "Backup Log - " & strComputerName
            oCDO.From = strComputerName & "@domain.co.uk"
            oCDO.To = EMAIL_RECIPIENT

            oCDO.TextBody = "Backup log attached for " & strComputerName

            oCDO.AddAttachment BACKUP_LOG_PATH & "\" & logFilePath

            oCDO.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2

            oCDO.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") ="1.1.1.1"

            oCDO.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25

            oCDO.Configuration.Fields.Update

            oCDO.Send

            set oCDO = Nothing


            End Sub

            Sub EmailError

            Set oCDO = CreateObject("CDO.Message")

            oCDO.Subject = "Backup Log Missing - " & strComputerName
            oCDO.From = strComputerName & "@domain.co.uk"
            oCDO.To = EMAIL_RECIPIENT

            oCDO.TextBody = "No backup log found on " & strComputerName & " for today"

            oCDO.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2

            oCDO.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") ="1.1.1.1"

            oCDO.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25

            oCDO.Configuration.Fields.Update

            oCDO.Send

            set oCDO = Nothing


            End Sub

            set oFSO = Nothing
            Set oWshNetwork = Nothing

            #############################################
            Last edited by scurlaruntings; 26th October 2013, 13:20.

            Comment


            • #7
              Re: Setting Report of ntbackup

              Share My Step
              1. Create user for Backup Oper
              2. Add New user to Backup oper Gourp and Remote desktop
              3. Grant permission in Tape Drive can Modifly and Setting
              4. Define Job Schedul on Session Backup oper

              Comment

              Working...
              X