rsync include partial files in list to send?

2007-09-11 Thread brad miele

Hi,

I looked as best I could and didn't see my question addressed (which 
doesn't mean it isn't), so apologies if this is in a faq and i missed it.


i am hoping to use rsync with the --remove-sent-files option. the sending 
side of the transaction will very likely include files that are being 
written to when rsync is run. will rsync include these partial files in 
it's list? i want to avoid the copying of the partial files and obviously 
their removal from the source.


source system, is osx, remote is freebsd 6.x

best regards

Brad
-
Brad Miele
IPNstock.com
[EMAIL PROTECTED]
--
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: rsync include partial files in list to send?

2007-09-11 Thread Matt McCutchen
On 9/11/07, brad miele [EMAIL PROTECTED] wrote:
 i am hoping to use rsync with the --remove-sent-files option. the sending
 side of the transaction will very likely include files that are being
 written to when rsync is run. will rsync include these partial files in
 it's list? i want to avoid the copying of the partial files and obviously
 their removal from the source.

Yes, unfortunately, rsync will send the partially written files and
delete them from the source.  This is one of several weaknesses in its
handling of concurrent modifications to the source.

If you can modify the program that is writing the files, I suggest you
have it write to a file with a temporary name (say ending with .tmp)
and then rename the file to the real name.  Then, tell rsync to
--exclude='*.tmp' and you'll be all set.

Matt
-- 
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html