NAME

pmx-sophos-data - Update Sophos data files


SYNOPSIS

   pmx-sophos-data update
   pmx-sophos-data rollback
   pmx-sophos-data rollback 1


DESCRIPTION

The pmx-sophos-data script safely updates Sophos data files without disrupting running scans. All subsequent messages are scanned with the new data files.

pmx-sophos-data is the script used to install automatic virus data updates.

Sophos Directory Structure

Four versions of Sophos data files are stored in the etc/data/sophos directory. One of these is the current set of DAT files, as specified by the current symbolic link; the other three are backups from previous updates, and can be reinstalled if necessary. The files in the top-level directory are called the ``master'' files. The master files are always updated first, then copied into a subdirectory that the scanners use.

For example, here is a typical listing of etc/data/sophos:

 $ ls -l
 total 5480
 drwxr-xr-x    2 pmx    pmx        4096 Oct 14 16:12 1
 drwxr-xr-x    2 pmx    pmx        4096 Oct 14 16:12 2
 drwxr-xr-x    2 pmx    pmx        4096 Oct 14 16:12 3
 drwxr-xr-x    2 pmx    pmx        4096 Oct 14 16:12 4
 -r--r--r--    1 pmx    pmx         507 Oct 14 16:12 agobotae.ide
 -r--r--r--    1 pmx    pmx         537 Oct 14 16:12 backsm-a.ide
 -r--r--r--    1 pmx    pmx        2570 Oct 14 16:12 bdooraag.ide
 -r--r--r--    1 pmx    pmx         227 Oct 14 16:12 blaxe-a.ide
 lrwxrwxrwx    1 pmx    pmx           1 Oct 14 16:12 current -> 1
 -r-xr-xr-x    2 pmx    pmx      210500 Oct 14 16:12 vdl-3.74.dat
 lrwxrwxrwx    2 pmx    pmx          12 Oct 14 16:12 vdl.dat -> vdl-3.74.dat
 -r--r--r--    2 pmx    pmx      443637 Oct 14 16:12 vdl01.vdb
 -r--r--r--    2 pmx    pmx      401446 Oct 14 16:12 vdl02.vdb
 -r--r--r--    2 pmx    pmx      389383 Oct 14 16:12 vdl03.vdb
 -r--r--r--    2 pmx    pmx      439542 Oct 14 16:12 vdl04.vdb
 -r--r--r--    2 pmx    pmx      459468 Oct 14 16:12 vdl05.vdb
 -r--r--r--    2 pmx    pmx      376402 Oct 14 16:12 vdl06.vdb
 -r--r--r--    2 pmx    pmx      374881 Oct 14 16:12 vdl07.vdb
 -r--r--r--    2 pmx    pmx      344925 Oct 14 16:12 vdl08.vdb
 -r--r--r--    2 pmx    pmx      258931 Oct 14 16:12 vdl09.vdb
 -r--r--r--    2 pmx    pmx      370090 Oct 14 16:12 vdl10.vdb
 -r--r--r--    2 pmx    pmx      474813 Oct 14 16:12 vdl11.vdb
 -r--r--r--    2 pmx    pmx      405851 Oct 14 16:12 vdl12.vdb
 -r--r--r--    2 pmx    pmx      462176 Oct 14 16:12 vdl13.vdb

In this example, the current files are in 1, as well as the top level. Older files are kept in 2, 3, and 4. Any operation that requires adding, deleting, or changing files in this directory will store the new files, copy them into the next directory (2 in this example), and then update current.

Rolling back DAT updates

To roll back to a particular version, first list the rollbacks available:

   pmx-sophos-data rollback

Typical output is:

   $ pmx-sophos-data rollback
    * [2] - Wed Oct 15 23:56:27 2003
      [1] - Tue Oct 14 16:12:46 2003
      [4] - Mon Oct 13 15:21:11 2003
      [3] - Sun Oct 12 20:34:02 2003

The current files are always shown first, followed by the possible rollbacks. If the desired file is found, roll back to it:

   pmx-sophos-data rollback 3


COPYRIGHT

Copyright (C) 2000-2008 Sophos Group. All rights reserved. Sophos and PureMessage are trademarks of Sophos Plc and Sophos Group.