
verifique el siguiente script donde tengo que rotar el archivo durante 30 días y moverlo al directorio de respaldo después de la rotación. Entonces, como he usado rotar 30 y maximizar 30, cuando se realice la rotación para el día 31, ¿se eliminará el archivo más antiguo que tenga 30 días más?
/data_gpfs/engageone/active-drive/E-Archive/SystemData/logrotation_test/test.log {
daily
copytruncate
create 775 root wsdepl
dateext
dateformat .%Y.%m.%d
rotate 30
maxage 30
missingok
#notifempty
sharedscripts
postrotate
cd /data_gpfs/engageone/active-drive/E-Archive/SystemData/logrotation_test
gzip test.log.*
mv /data_gpfs/engageone/active-drive/E-Archive/SystemData/logrotation_test/*.gz /data_gpfs/engageone/active-drive/E-Archive/SystemData/logrotation_test/backup
endscript
}
Por favor ayúdame con esto. Gracias..