apache log backups

Wayne Davison wayned at samba.org
Wed Jan 10 01:58:20 GMT 2007

On Tue, Jan 09, 2007 at 04:02:14PM -0500, Darxus at ChaosReigns.com wrote:
> it's not noticing that, for
> example, www.chaosreigns.com-access.log.196.gz on the origin is the same
> file as www.chaosreigns.com-access.log.186.gz on the destination, so
> *everything* is getting unnecessarily retransmitted.

The --fuzzy option might help, but only if the filenames that moved
don't already exist.  Rsync expects that an existing file is the right
file to use for old data, and never checks for a different file as a
better source of old data.  For the case of rotated logs, you're better
off first running an appropriate number of file rotations on the
receiving system, and then doing a copy of the new files.


More information about the rsync mailing list