Benches macOS

7

Sophos On-Access Scanner and Time Machine

apple Verified

Imported from the Apple Support Forums via the Wayback Machine 🔗

Dear Community,

Time Machine performance has been flaky since I upgraded to Mac OX 10.6.1 and if the On-Access Scanner of Sophos Antivirus is on. In general, the backup is slower. But that's not the problem: Sometimes the backup works ok, sometimes time machine hangs and the backup is incomplete.

The most commonly recommended workaround for this is to switch off the On-Access Scanner. Sadly, this is not acceptable. The Mac works as a fileserver and the On-Access Scanner has proven valuable in reducing the number of viruses in our mixed PC environment.

Is there a way to temporarily shut down the Sophos On-Access Scanner during a Time Machine backup? I was thinking about a terminal script like this:

Shut
Down_Sophos_On_AccessScanner

Initiate
Time_MachineBackup

Turn
On_Sophos_On_AccessScanner

Any help would be greatly appreciated.

7 replies

Sign in or join Beachball Help to reply.

  1. 0

    Pondini

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Can you exclude your TM drive from the anti-virus scanning?

  2. 0

    Drucksache

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Yes I can, and I did. It didn't change the behaviour.

  3. 0

    Pondini

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Drucksache wrote:

    Yes I can, and I did. It didn't change the behaviour.

    Rats. You might try excluding your TM drive from Spotlight, at least temporarily, via System Preferences > Spotlight > Privacy.

    If that doesn't help, watch your CPU usage via the +Activity Monitor+ app (in your Applications/Utilities folder).

    When it starts, select either +All Processes+ or +Active Processes+ in the toolbar, and sort the list by the +% CPU+ column, so the highest numbers are on top, and select the
    CPU tab towards the bottom.

    For this purpose, also select +View > Update Frequency > Less Often+ from the Menubar.

    Various processes will "spike" up and down normally as they do things, then are idle, so you need to watch it for a while and get a feel for the processes that are using the most CPU, and the +% Idle+ at the bottom.

    When the slowdown occurs, see if something changes significantly, especially if the +% idle+ goes to near zero. If that happens, see what process(es) are using the most CPU.

    If the process(es) involved aren't familiar to you, post their names here (and or check this out:
    http://triviaware.com/macprocess/all)

  4. 0

    Graham Outterside

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Drucksache wrote:

    Yes I can, and I did. It didn't change the behaviour.

    Hmmm..... worked for me in the past. I always had the blue shield 'greyed out' as Sophos stopped TM from working. When it was greyed out however, TM worked fine.

  5. 0

    Drucksache

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Graham, Pondini, thanks a lot for your responses.

    I feel a little dumb that I hadn't thought of checking the Activity Monitor. The next time, the incompatibility occurs, I will look.

    At first, I thought that the on-access scanner is responsible. I had already noticed how slow TM had become after I installed Sophos.

    Strangely, after completion of one backup with the on-access scanner disabled, TM did about ten flawless hourly backups with the on-access scanner switched on again. Then at about 1400h (GMT+2) TM failed again. When I noticed this a few hours later, not only did time machine hang, but also Sophos (not gracefully abortable) - the latter in the process of updating the virus signatures.

    Now I am thinking that maybe the fault lies with the update process rather than the scanner. It is entirely possible that both (hourly) processes collide rather often. When I tried to test this, I only found out one small piece of information: A collision during times when the signatures are already up-to-date seems to be harmless. It's just too bad that I cannot reproduce the error reliably.

    I tested TM and the on-access scanner with the EICAR test file. A test virus. Sophos reliably complained, if TM tried to backup the virus file and stated that access to the file was denied. Still, that didn't prevent time machine from making a backup. (Interesting privileges :-)) I tried this a dozen times. The backup process was not shot down.

    Incidentally, this means the most reliable way to keep the backup virus free is to let Sophos copy files it deems infected to a separate directory. You may want to put that on TM's exclude list.

    I am sorry to say that all this did not really help to explain the sporadic Sophos/TM error.

  6. 0

    Drucksache

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    I don't know what happened. Just to close this topic: The problem went away when I removed 200GB of data from my machine. The system is now very small. Still, Sophos and Time Machine don't seem to collide anymore.

  7. 0

    Drucksache

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Problem subsided.