Re: Overwrite the rsync log-file in rsync3.0.5 ??
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.. -- Please use reply-all for most replies to avoid omitting the mailing list. To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Overwrite the rsync log-file in rsync3.0.5 ??
Hi, Could any one please let me know if there is anyway to overwrite the log-file if it already exists. I want /tmp/mylogs/myfile file to be overwritten each time below command executes. rsync -av -ii file-format='MyLogs: %i %f %l %o %b' --log-file='/tmp/mylogs/myfile' Thanks, Jignesh -- Please use reply-all for most replies to avoid omitting the mailing list. To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html