Every day I would like to run logrotate on /var/trafficap/captured/arch/
and zip all the zip packages I have for each day ( its 1 package.zip with a name like this :
log_from_2012_08_14-11:57:12_To_2012_09_14-13:57:12.zip
For each 2 hours of trafic, and when I get to the daily schedule time of lograte he would create the log_2012_08_14.zip(sum of all todays .zip) and move it it everyday to a different dir just like this:
/var/trafficap/captured/arch/*zip {
daily
compress
prerotate
if [[ ! -d `date +%F` ]]
then
mkdir `date +%F`
fi
endscript
}
but i don't know how to say "Logrotate please zip this files to the datedtoday.zip to the directory that is equal to $datedtoday that I created on the pre script\conf file"