1 .\" @(#)man/man8/savelog.an 1.2 24 Oct 1990 05:18:46
11 .TH SAVELOG X_MAN8_EXT_X "31 January 1988" "Local"
13 savelog \- cycle and truncate log files
16 .B X_UTIL_BIN_DIR_X/savelog
40 command renames and optionally compresses a log file and cycles it
41 through a set of names based on the original log file, removing the
42 last name in the cycle.
46 command accepts the following options:
49 Change the permissions mode for renamed log files to
51 By default the mode is unchanged.
54 Change the owner for renamed log files to
56 By default the owner is unchanged.
59 Change the group for renamed log files to
61 By default the group is unchanged.
66 versions of the logfile, where
68 is a decimal number. The default value is 7.
71 Do not compress log files. By default, a compression program is used,
75 Ensure that a new logfile exists when the savelog operation is
81 imply this, ensuring that the logfile will have the designated mode.
83 The given logfile is cycled through files named:
86 OLD/\fIfile\fP.\fInumber\fP
91 is the basename for the logfile and where
93 ranges from 0 to one less then the
95 count specified for the command.
98 dirctory is created, as necessary, and is under the same directory as
101 This cycle operation is accomplished by renaming the file numbered
105 and so on until the file numbered 0 is renamed to the file numbered 1.
106 If compression is being used, the first cycle file is compressed after
107 being renamed to cycle 1. After the cycle files are moved through the
108 various names, the filefile itself is moved to the cycle 0 file.
109 This cycle normally occurs once every time
112 If the log file does not exist, savelog ignores it and does
113 not cycle the OLD files.
115 If compression is being used, then compressed log files will have an
116 additional suffix appropriate for the compression program that is
119 .IR smail (X_MAN5_EXT_X)
121 .IR smail (X_MAN8_EXT_X).
123 Copyright(C)1987, 1988 Ronald S. Karr and Landon Curt Noll
126 distributed with the source code,
129 for distribution rights and restrictions
130 associated with this software.