Overwrite the rsync log-file in rsync3.0.5 ??

Wayne Davison wayned at samba.org
Fri Apr 24 14:52:46 GMT 2009


On Fri, Apr 17, 2009 at 02:26:25PM +0530, Jignesh Shah wrote:
> Hi, Could any one please let me know if there is anyway to overwrite the
> log-file if it already exists.

Just change your script that runs rsync to do a "rm /tmp/mylogs/myfile"
or "cp /dev/null /tmp/mylogs/myfile" prior to the transfer.  Rsync always
appends.

..wayne..


More information about the rsync mailing list