savelog(1M) savelog(1M)
NAME
savelog - save a log file into an archive directory
SYNOPSIS
/usr/sbin/savelog [-d savedir] [-c cycles] [-n noncomp] [-s]
[-o owner] [-g group] [-m mode] [logfile]
DESCRIPTION
savelog is used to keep the size of a log file down by periodically
truncating it. In order not to lose information, several versions may
be kept in an archive directory. To save on space, one may arrange to
keep these archived log files in compressed form.
OPTIONS
-d savedir
The directory used to store archived versions of logfile. savedir
should be a full pathname or a pathname relative to logfile.
If savedir does not exist it will be created. The default path is
./.old.
-c cycles
The number of archived versions of logfile to save. The default
is 5.
-n noncomp
The first noncomp archives are not compressed. If noncomp is 0
then all archived files will be compressed. If noncomp is the
same as cycles then no archived files will be compressed. The
default is 1.
-s Process logfile even if it is empty.
-o owner
Ensures that logfile and related archives are owned by owner. If
savedir needs to be created then it will also be owned by owner.
Existing archive directories are not affected.
-g group
Ensures that logfile and related archives are owned by group. If
savedir needs to be created then it will also be owned by group.
Existing archive directories are not affected.
-m mode
Ensures that logfile and related archives have mode mode. If log-
file was specified then mode does not apply to the savedir
archive directory.
logfile
The full pathname of the file to be archived. If no logfile is
specified then savelog will only attempt to create the savedir
directory.
Page 1 Reliant UNIX 5.44 Printed 11/98
savelog(1M) savelog(1M)
SEE ALSO
chgrp(1), chmod(1), chown(1), compress(1), cron(1M).
Page 2 Reliant UNIX 5.44 Printed 11/98