10 May
2023
10 May
'23
12:10
Per Jessen wrote:
Carlos E. R. wrote:
preremove /usr/local/bin/archive_logfile.sh /var/log/testfile endscript } -------------------
It is not what you wish, but would do.
You are close, but no, it would not be called with the right arguments. There are two calls -
1) as above 2) with the oldest compressed archive
That "preremove" option is pretty cool. Didn't exist when I set up our own log archiving almost twenty years ago :-) It makes it easy and straight forward to do log archiving. Although it is yet another situation where you wish for MAILTO to work with systemd timers :-) -- Per Jessen, Zürich (15.0°C) Member, openSUSE Heroes (2016 - present) We're hiring - https://en.opensuse.org/openSUSE:Heroes