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

Sophos Antivirus and Time Machine

Does anyone else find that the default "Scan This Mac" option gets stuck unless you exclude your Time Machine backup volume from the scan? I was really disappointed with the speed of the scan until I thought to try this, as I was finding it would get stuck about a third of the way in and stay there for hours until I gave up. The only reason I can think of for this though would be if it's scanning the full contents of every backup, but that would be a staggering number of files to get through (my system has millions of files as it is, totalling around 2.5tb).

I would think that an antivirus product for Mac would be aware of Time Machine's file structure and have methods for accelerating the scan. For example, it's pretty easy to figure out which files have changed between two Time Machine backups by comparing inodes, since Time Machine uses hard-links, so only original files and changed files should need to be scanned. Also, since a Time Machine backup is just a snapshot of the rest of your system, it should be easy enough for Sophos antivirus to determine if the file is identical to one already scanned (or waiting to be scanned) on the main system or not, so that copies don't need to be scanned more than once.

Does Sophos antivirus already account for these things? Otherwise I can't figure out why excluding my Time Machine backup would solve the problem. Should I submit a support ticket somewhere?

:1015215


This thread was automatically locked due to age.
  • SAV has a default exclusion for on-access scanning and any Time Machine volume, however on-demand scanning doesn't have a predefined exclusion.

    If using Time Machine some users may want to scan the Time Machine volume, some may not.  By default the volume is scanned with on-demand but automatic cleanup isn't enabled because TM backups have a complex structure and even encrypted.  There are quite a few posts on this forum from users scanning their Macs and TM volumes and finding things hence it's worth doing.  If you haven't already done so watch the scanning video for SAV for Mac HE which explains all local volumes are scanned and that this may not be desirable.

    I think from a security point of view you're going to want to exclude as little as possible, however without the on-access exclusion the performance of the computer could be lowered.  Hence the balance struck is to exclude on-access scanning and leave on-demand up to the user.

    :1015259

     - - - - - - - - - - - -

    Communities Moderator, SOPHOS
    Knowledge Base  |  @SophosSupport  |  Video tutorials
    Remember to like a post.  If a post (on a question thread) solves your question use the 'This helped me' link.

  • Oh I agree that I should scan my Time Machine volume if I can, the problem is that Sophos Antivirus seems to get stuck while doing it, but I can't figure out why.

    When it generates its count of files to be scanned Sophos doesn't seem to include my Time Machine volume, as the count is about right for my root volume. However, it must be scanning my Time Machine volume as leaving it included is what causes the problem, however without a file count I have no way of knowing how much progress it's making.

    However, I've left the scan running for while over four times the length of time it takes to scan my system with Time Machine excluded, which seems like too long, as scanning the Time Machine volume should take closer to twice as long (since a majority of files are hard-links). I'm not sure if this means that Sophos antivirus is re-scanning file links or not though as I can't tell if it's actually doing anything at all other than the fact that it's still utilising CPU time.

    As I say, there are several fairly easy tricks that should be in use to accelerate scans of a Time Machine volume, which means it shouldn't take much longer than scanning the root volume on which it's based. I don't know if these tricks are being used or not, though I'd normally be inclined to give Sophos the benefit of the doubt and assume it is, but all I know is that including my Time Machine volume causes my on-demand scans to seemingly never end; I say seemingly as I shut my Mac down at night, so I can't just leave the scan running long-term, but the logs don't include an verbose progress that I can see so I really don't know what's going on.

    :1015263
  • You may be interested in reading the post below - the video right at the bottom of the first page (no audio) shows the behavior of SAV with a file count when TM is connected but excluded (SAV counts files in TM but then quits the scan early).  There is also a post by myself at the top of page two explaining the logic that  provided, and a Terminal scan you can run to output the file names - just an idea.

    http://openforum.sophos.com/t5/Sophos-Anti-Virus-for-Mac-Home/Number-of-files-to-interrogate/td-p/14301

    Ultimately exclude TM and don't worry about it - the files aren't live.

    :1015265

     - - - - - - - - - - - -

    Communities Moderator, SOPHOS
    Knowledge Base  |  @SophosSupport  |  Video tutorials
    Remember to like a post.  If a post (on a question thread) solves your question use the 'This helped me' link.

  • Apologies for dragging up an aging thread, however..

    Can someplease please provide the current stance re. the default behaviour of SAV for Mac (Home Edition) v9.2.2 with Time Machine?

    1) On install to two separate Yosemite machines their seemed to be *no* default exclusions re. Time Machine for neither On-Access or On-Demand scanning? Or are these exclusions within the code and not displayed within the interface?

    2) If manual exclusions are required/recommended for On-Demand scans, which specific directories should be excluded?  On my setup I use two network backup targets - a Time Capsule and a NAS which has 3rd party support for Time Machine.

    Additionally, if a BOOTCAMP partition is used should this also be exlcuded from On-Demand scans (on one machine I have this causes a irrecoverable lock-up, despite having run a chkdisk on the windows side).

    Thanks in advance.

    Simon

    :1020125
  • I've left the scan running for while over four times the length of time it takes to scan my system with Time Machine excluded, which seems like too long, as scanning the Time Machine volume should take closer to twice as long (since a majority of files are hard-links). I'm not sure if this means that Sophos antivirus is re-scanning file links or not though as I can't tell if it's actually doing anything at all other than the fact that it's still utilising CPU time.???

    :1020201
  • I'm in same boat, just posting to hear if there is a solution to the TM problem.

    :1020208

  • kevs40 wrote:

    I'm in same boat, just posting to hear if there is a solution to the TM problem.


    The suggestion is to exclude your backup volume. We don't do this automatically, and we probably won't do this automatically - its a tradeoff between doing things that appear smart vs. being fooled into not scanning something the user really wants to scan. This is a decision the user / owner of the computer really needs to make. The "Scan This Mac" option is a literal implementation - scan everything directly attached to your Mac, including external drives.

    We are (finally) going to be revisiting the on-demand scanner implementation in the next few months. When we do, we'll have a look to see if we can better understand the performance impact with very large Time Machine volumes.

    :1020221

    ---

    Bob Cook (bob.cook@sophos.com) Director, Software Development

  • Thanks Bob, did not understand much of that.

    :1020224

  • kevs40 wrote:

    Thanks Bob, did not understand much of that.


    Hi kevs40,

    Apologies if my message was confusing - which part? Happy to clarify, just not sure where to start. Feel free to ping me off list if you prefer.

    :1020230

    ---

    Bob Cook (bob.cook@sophos.com) Director, Software Development

  • Thanks Bob, can somene ping someone off! What a cool feature, never heard of that before. Photoshop forums should get that... lot of rude people over there.

    Ok, Sophos suddenly cannot scan time machine volume. What happened, why is this and is there something that can be done or do Mac people have to live with that?

    :1020231