Is there a way to set an unlimited number of potential logs in the regular logrotate.d configuration file?
The only thing I can think of is to set it to some insane number that will never be executed. Sort of:
/var/log/app/* {
missingok
weekly
copytruncate
rotate 10000000000
compress
notifempty
olddir /var/log/app/old
}
But that seems pretty hoarse to me.
source
share