logrotation- 회전 및 maxage 명령

logrotation- 회전 및 maxage 명령

30일 동안 파일을 회전해야 하고 회전 후 백업 디렉터리로 이동해야 하는 아래 스크립트를 확인하세요. 그래서 회전 30과 최대 30을 사용했기 때문에 31일에 로그 회전이 발생하면 30일 이전의 가장 오래된 파일이 삭제됩니다..?

/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
}

이것에 대해 도와주세요. 감사합니다..

관련 정보