logrotate

Package: WA2L/edrc 1.5.57
Section: General Commands (1)
Updated: 16 July 2008
Index Return to Main Contents

 

NAME

logrotate - rotate logfiles

 

SYNOPSIS

edrc/bin/logrotate [ -h ]

logrotate -f file [ -r number_of_saves ]

 

AVAILABILITY

WA2L/edrc

 

DESCRIPTION

logrotate rotates logfiles on the system. The permissions and the file handle of the logfile ( file ) are preserved.

The file is saved to file.<number> where the <number> counts from 1 to number_of_saves.

The newest version of the file is the one having the lowest number, the oldest file has the highest number.

If the specified file does not exist, the already saved versions are not rotated.

 

OPTIONS

-h
usage message.

-f log_file
logfile to be rotated.

-r number_of_saves
number of rotated files that are kept on the filesystem.

 

ENVIRONMENT

-

 

EXIT STATUS

0
no error.

1
specified file to be rotated does not exist.

2
cannot write to logfile of logrotate.

3
configfile logrotate.cfg does not exist.

4
usage printed.

 

FILES

etc/logrotate.cfg
configuration file of logrotate, see logrotate.cfg(4) for more information.

var/log/logrotate.log
default logfile of logrotate.

 

EXAMPLES

-

 

SEE ALSO

edrcintro(1), logrotate.cfg(4)

 

NOTES

-

 

BUGS

-

 

AUTHOR

logrotate was developed by Christian Walther. Send suggestions and bug reports to wa2l@users.sourceforge.net .

 

COPYRIGHT

Copyright © 2008 Christian Walther

This is free software; see edrc/doc/COPYING for copying conditions. There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


 

Index

NAME
SYNOPSIS
AVAILABILITY
DESCRIPTION
OPTIONS
ENVIRONMENT
EXIT STATUS
FILES
EXAMPLES
SEE ALSO
NOTES
BUGS
AUTHOR
COPYRIGHT

This document was created by man2html using the manual pages.
Time: 00:14:09 GMT, March 08, 2025