logrotate

Amedee Van Gasse (ub) amedee-ubuntu at amedee.be
Thu Mar 4 09:03:28 UTC 2010


On Thu, March 4, 2010 09:41, Kaushal Shriyan wrote:
> Hi,
>
> is there a way to scp or rsync the files to a remote host older than
> 15 days in the logrotate config ?

Yes, of course!
Just add your scp or rsync stanza to the postrotate section of your
logrotate config. man logrotate or google 'logrotate postrotate' for
examples.

-- 
Amedee





More information about the ubuntu-users mailing list