Control: tags -1 moreinfo
Does the configuration option "createolddir" suit your problem?
Best regards
Christian Göttsche
Package: logrotate
Version: 3.7.1-5
Severity: wishlist
Hi,
I guess this is more of a wish for upstream, but since I haven't been
able to locate any bug tracker or even website for upstream, I'll report
here.
Currently, logrotate supports the olddir options, for moving rotated
logfiles to a
though I just realized that a script like
for i in /foo/*; do mkdir -p $i/archive; done
would also do the trick, though it is slightly less elegant...
Scratch that... logrotate verifies the olddir directly after reading a config
entry, so long before any scripts are run...
Gr.
Matthijs
On Tue, May 05, 2009 at 01:58:59PM +0200, Matthijs Kooijman wrote:
This automatic creation is needed to support my dynamic logging
environment: I have syslog files for different hosts, each of which have
their own olddirs. Since directories for new hosts can be created at any
time, I can't
Hi Paul,
Surely when you're creating the conffile fragment for logrotate to use, you
can also make the corresponding olddir directory?
Nope, since I use wildcards:
/data/log/rsyslog/*/*/*.log
{
...
olddir archive
}
Here, the dir structure is like:
On Tue, May 05, 2009 at 03:53:44PM +0200, Matthijs Kooijman wrote:
Hi Paul,
Surely when you're creating the conffile fragment for logrotate to use, you
can also make the corresponding olddir directory?
Nope, since I use wildcards:
/data/log/rsyslog/*/*/*.log
{
...
olddir archive
Hi Paul,
My suggestion would be that the directory is automatically created only when
the olddir is specified as a directory within the log file's directory (ie.
no slashes), and that it should inherit the ownership and permissions of its
parent directory.
That sounds pretty reasonable.
Gr.
7 matches
Mail list logo