pmx-store-expire - Expire messages in PureMessage message store
pmx-store-expire [options]
The pmx-store-expire
program can archive and delete messages from
the message store that are older than the specified number
of days and/or hours. The archive filename is printed to the
standard output after the archive is created.
The pmx-store-expire
program finds messages that are older
than the date and time specified, and creates symlinks in a temporary
directory. When all the expired messages are located, the temporary
directory is archived and deleted, along with the original messages.
Configuration of pmx-store-expire
is read from the
/opt/pmx6/etc/pmx.d/quarantine_expire.conf configuration file but you can
override the configured settings by passing the below command line
options.
The following options are recognized by the pmx-store-expire
program:
--days 0.5
is the same as --hours 12
.
If both --days
and --hours
are specified, the number is simply
added together. At least one of these options must be specified.
PMX_MESSAGE_STORE=dir:/opt/pmx6/var/qdir
driver specifies the database back end to use. At this time, only ``dir'' is supported. Specify the location of the message store in the path switch. See PureMessage::MessageStore for details about the access.
tar -cPf - | [compressor]
For example:
--exec "find . | cpio -o"
The list of expired files in the temporary directory is used as a standard input for the ``cpio -o'' command. The output of ``cpio -o'' is written to the archive file.
the pmx-store manpage, the pmx-store-import manpage, the pmx-store-export manpage
Copyright (C) 2000-2008 Sophos Group. All rights reserved. Sophos and PureMessage are trademarks of Sophos Plc and Sophos Group.