Logrotate to clean up date stamped files

后端 未结 6 1039
梦谈多话
梦谈多话 2021-01-31 17:22

I\'m currently trying to work out a method of tidying up Oracle Recover log files that are created by Cron...

Currently, our Oracle standby recover process is invoked b

6条回答
  •  再見小時候
    2021-01-31 18:10

    (Unable to comment as not enough reputation)

    I had a similar issue. By all accounts logrotate is useless for use on filenames with built in datestamps.

    If all else was equal I would probably go with find in a cron job.

    For my own reasons I wanted to use logrotate and eventually found a way: https://stackoverflow.com/a/23108631

    In essence it was a way of encapsulating the cron job in a logrotate file. Maybe not the prettiest or most efficient but like I said, I had my reasons.

提交回复
热议问题