This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Slow backups since 9.5 installed

Hi there

I've installed 9.5 over the Christmas period, and our backups are now running much more slowly, despite us still issuing a net stop savservice before running the backup.

The Sophos logs appear to show that the on-access scanning is re-starting itself during the backup window - I've read this could be to do with the automatic update.

How can I stop Sophos re-starting on-access scanning until it is clear to do so by the backup application?

Thanks

Alex

:7851


This thread was automatically locked due to age.
Parents
  • Hi,

    Something basic could be done as a workaround in the short term:  E.g one script could be run before the backup, the other after.

    To Stop and Disable:

    Set objWMIService = GetObject("winmgmts:\\.\root\cimv2")
    
    Set colServiceList = objWMIService.ExecQuery _
        ("Select * from Win32_Service where Name = 'SAVService' or Name = 'Sophos AutoUpdate Service' ")
    
    For Each objService in colServiceList
        If objService.State = "Running" Then
           objService.StopService()
           Wscript.Sleep 5000
           objService.ChangeStartMode("Disabled")
        else
          'Wasn't running
        End If
    Next

    To Enable and Start.

    Set objWMIService = GetObject("winmgmts:\\.\root\cimv2")
    
    Set colServiceList = objWMIService.ExecQuery _
        ("Select * from Win32_Service where Name = 'SAVService' or Name = 'Sophos AutoUpdate Service' ")
    
    For Each objService in colServiceList
        If objService.State = "Running" Then
          'ok
        else
          objService.ChangeStartMode("Automatic")
          Wscript.Sleep 5000
          objService.StartService()
       End If
    Next

    They could be combined into one VBScript but you get the idea.

    I've chosen to disable AutoUpdate also, as if an update occurs during the backup it could install SAV which might start the SAV service.

    But I would suggest calling Support for a better solution.

    Regards,

    Jak

    :7955
Reply
  • Hi,

    Something basic could be done as a workaround in the short term:  E.g one script could be run before the backup, the other after.

    To Stop and Disable:

    Set objWMIService = GetObject("winmgmts:\\.\root\cimv2")
    
    Set colServiceList = objWMIService.ExecQuery _
        ("Select * from Win32_Service where Name = 'SAVService' or Name = 'Sophos AutoUpdate Service' ")
    
    For Each objService in colServiceList
        If objService.State = "Running" Then
           objService.StopService()
           Wscript.Sleep 5000
           objService.ChangeStartMode("Disabled")
        else
          'Wasn't running
        End If
    Next

    To Enable and Start.

    Set objWMIService = GetObject("winmgmts:\\.\root\cimv2")
    
    Set colServiceList = objWMIService.ExecQuery _
        ("Select * from Win32_Service where Name = 'SAVService' or Name = 'Sophos AutoUpdate Service' ")
    
    For Each objService in colServiceList
        If objService.State = "Running" Then
          'ok
        else
          objService.ChangeStartMode("Automatic")
          Wscript.Sleep 5000
          objService.StartService()
       End If
    Next

    They could be combined into one VBScript but you get the idea.

    I've chosen to disable AutoUpdate also, as if an update occurs during the backup it could install SAV which might start the SAV service.

    But I would suggest calling Support for a better solution.

    Regards,

    Jak

    :7955
Children
No Data