/[base]
ViewVC logotype

Revision 210372


Jump to revision: Previous Next
Author: simon
Date: Thu Jul 22 11:23:18 2010 UTC (13 years, 11 months ago)
Changed paths: 2
Log Message:
Add support for creating the archived log filenames using a time-stamp
instead of the traditional simple counter.

Using the time-stamp based file-names, once a log file is archived, it
will not change name until it is deleted.  This means that many backup
systems will only perform one backup of the archived log file, instead
for performing a new backup of the logfile upon each logfile rotation.

This implementation is separate from the patches in the mentioned PR,
as I wasn't aware of the existence of the PR until after I had
implemented the same functionality as the patches in the PR provide.
Unlike the PR, this new code does honor the 'log count' in
newsyslog.conf so old logfiles are deleted.  This new code does not
currently support never deleting the archived logfiles.

PR:		bin/29363
MFC after:	3 weeks


Changed paths

Path Details
Directoryhead/usr.sbin/newsyslog/newsyslog.8 modified , text changed
Directoryhead/usr.sbin/newsyslog/newsyslog.c modified , text changed

  ViewVC Help
Powered by ViewVC 1.1.27