guys. im trying to add to logrotate files from a some directory. it should be either *.txt files or *_log files. wtat's the right syntax for this:
/var/www/html/groupware/horde_logs/[*.txt|*_log]{
missingok
notifempty
sharedscripts
size=5129k
delaycompress
postrotate
endscript
}
~
or it should be:
..{*.txt|*_log} or ..(*.txt|*_log)?
It would be
*{.txt,_log}
(note the comma, not the pipe). However, after a quick look at the source to logrotate (Ubuntu Saucy) I see the flagGLOB_BRACE
to enable this GNU extension isn't present. Thus, you have to do something likeinstead.