rsync & rotated logs

Wayne Davison wayned at
Thu Feb 26 02:41:41 GMT 2004

On Wed, Feb 25, 2004 at 11:14:47PM +0100, Andrzej Filip wrote:
> What is the best way to keeps rsynced copy of rotate log files ?
> x.log -> x.log.1 -> x.log.2.gz -> ...
> Can rsync "notice" changes of file name and avoid needless synchronization ?

One thing you can do is to run the same log-rotate on both machines at
the same time (yes, on the backup machine too).  Just be sure no rsync
run overlaps with the log-rotating time period, and it will give the
next rsync synchronization a significant head start.


More information about the rsync mailing list