Doing a test in a production enviroment with rotation logs with 2 days just for testing purposes with gizp files. Created a test file at /tmp/.
/etc/init.d/test
/tmp/test/*.gz {
daily
missingok
rotate 2
notifempty
prerotate
/root/log_mv.sh
endscript
}
Didn't use the compress statement at /etc/init.d/test and I'm not figure out how could I group a bunch of .gz files by day and i could extract those files that are using logrotate.
My scenario is MobaXterm application into Windows 10 Pro and I need to extract these files generated by logrotate with a extension that didn't use compression.
mv file.gz file.zip
.. please (if you can) make your details more clear.tar
).. this combines files without compressing them. Usually, peopletar
the files first, them GZip the tar ball.. what you want is the other way around. :)FileSystemWatcher
.. in fact, if you are more comfortable with windows, you can do ALL of the work on the windows side. No need to even compress the logs.