Bug#527060: logrotate: Automatically create "olddir"

2018-08-23 Thread Christian Göttsche
Control: tags -1 moreinfo Does the configuration option "createolddir" suit your problem? Best regards Christian Göttsche

Bug#527060: logrotate: Automatically create olddir

2009-05-05 Thread Matthijs Kooijman
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

Bug#527060: logrotate: Automatically create olddir

2009-05-05 Thread Matthijs Kooijman
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

Bug#527060: logrotate: Automatically create olddir

2009-05-05 Thread Paul Martin
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

Bug#527060: logrotate: Automatically create olddir

2009-05-05 Thread Matthijs Kooijman
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:

Bug#527060: logrotate: Automatically create olddir

2009-05-05 Thread Paul Martin
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

Bug#527060: logrotate: Automatically create olddir

2009-05-05 Thread Matthijs Kooijman
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.