[Cialug] Logrotage for keeping archived backups

Josh More jmore at starmind.org
Wed Oct 9 19:54:43 CDT 2013


Try two logrotate scripts.  One that runs each month and moves the files
outside of a watched directory to your archive location.

Your second script would run after the first one (priority-wise) and would
do your normal rotation.

-Josh


On Wed, Oct 9, 2013 at 7:47 PM, Matthew Nuzum <newz at bearfruit.org> wrote:

> I would like a backup retention policy that keeps the last 7 days of a log
> file plus the last one of each month. Has anyone seen a log rotate config
> that does this?
>
> Or maybe a shell script that is already made?
> --
> Matthew Nuzum
> newz2000 on freenode, skype, linkedin and twitter
>
> ♫ You're never fully dressed without a smile! ♫
>
>
> _______________________________________________
> Cialug mailing list
> Cialug at cialug.org
> http://cialug.org/mailman/listinfo/cialug
>


More information about the Cialug mailing list