A question about rsync

2004-05-18 Thread Yang Du
> Once synchronize a file. Does rscync first create a temporary in the > remote machine first and then rename it? Or it direct write the difference > into the dest-file? > > Could you please tell me what will happen to the dest-file when a rsync > process interrupted by some problems(network prob

Re: Fwd: Re: setting checksum_seed

2004-05-18 Thread Craig Barratt
Wayne Davison writes: > On Sat, May 15, 2004 at 02:25:11PM -0700, Craig Barratt wrote: > > Any feedback on this patch and the possibility of getting it > > into CVS or the patches directory? > > The file checksum-seed.diff was put into the patches dir on the 2nd of > May. Strangely, I don't seem

? about FLAG_TOP_DIR

2004-05-18 Thread Chris Shoemaker
in send_file_name(), there is: if (write_batch) file->flags |= FLAG_TOP_DIR; Can anyone explain this? It results in the file flags sent to the batch file differing from the ones sent to the recevier by that one bit. But, why? -chris -- To unsubscribe or change

Re: batch-mode fixes [was: [PATCH] fix read-batch SEGFAULT]

2004-05-18 Thread Chris Shoemaker
On Tue, May 18, 2004 at 11:11:51AM -0400, Alberto Accomazzi wrote: > > Wayne Davison wrote: > > > >I'm wondering if batch mode should be removed from the main rsync > >release and relegated to a parallel project? It seems to me that a > >better feature for the mainstream utility would be somet

Re: batch-mode fixes [was: [PATCH] fix read-batch SEGFAULT]

2004-05-18 Thread Donovan Baarda
On Wed, 2004-05-19 at 06:10, Chris Shoemaker wrote: > On Tue, May 18, 2004 at 10:06:52AM -0400, Alberto Accomazzi wrote: > > Chris Shoemaker wrote: [...] > > that the feature is useless, but just caution people that they need to > > understand the assumptions that this use of rsync is based upon.

Re: batch-mode fixes [was: [PATCH] fix read-batch SEGFAULT]

2004-05-18 Thread Chris Shoemaker
On Tue, May 18, 2004 at 10:06:52AM -0400, Alberto Accomazzi wrote: > Chris Shoemaker wrote: > > > Indeed, what you describe seems to have been the design motivation. > > I > >can share what my desired application is: I want to create a mirror of a > >public server onto my local machine w

Re: batch-mode fixes [was: [PATCH] fix read-batch SEGFAULT]

2004-05-18 Thread Chris Shoemaker
On Mon, May 17, 2004 at 09:42:18PM -0700, Jos Backus wrote: > On Mon, May 17, 2004 at 05:18:10PM -0400, Chris Shoemaker wrote: > > BTW, there is a work-around. If you don't mind duplicating the mirror > > twice, one solution is to do a regular (no --write-batch) rsync update of one > > copy of

Re: batch-mode fixes [was: [PATCH] fix read-batch SEGFAULT]

2004-05-18 Thread Chris Shoemaker
On Mon, May 17, 2004 at 08:10:57PM -0700, Wayne Davison wrote: > On Mon, May 17, 2004 at 05:18:10PM -0400, Chris Shoemaker wrote: > > The "knowledge" or "memory" of that exact state is more likely to > > reside with the receiver (who just left that state) than with the > > sender (who may never hav

Re: error in rsync protocol data stream

2004-05-18 Thread Tim Conway
It appears that the command you show is not a complete copy/paste job. When you changed "backup.amlaw.com" or whatever it was to "backup.domain.com", you also removed one of the colons between that and "jspfsp", as the only time rsync does a chroot is as a server. A chroot failure is almost inva

Re: A question about rsync

2004-05-18 Thread Tim Conway
That is it. The destination file is unaffected until rsync completes its replacement, then the directory entry is repointed at the new file and the reference to the old inode freed. Tim Conway Unix System Administration Contractor - IBM Global Services desk:3032734776 [EMAIL PROTECTED] Hi:

Re: batch-mode fixes [was: [PATCH] fix read-batch SEGFAULT]

2004-05-18 Thread Alberto Accomazzi
Wayne Davison wrote: The "knowledge" or "memory" of that exact state is more likely to reside with the receiver (who just left that state) than with the sender (who may never have been in that state). Therefore it is more likely to be useful to the receiver than to sender. This is only true if y

Re: [BUG] rsync 2.6.2

2004-05-18 Thread Ruediger Oertel
On Sun, 9 May 2004, PaweÅ GoÅaszewski wrote: > > After upgrade from previous version I can't run rsync. > > 2004/05/09 10:40:54 [18630] rsyncd version 2.6.2 starting, listening on port 873 > 2004/05/09 10:40:54 [18630] rsync error: error in socket IO (code 10) at > socket.c(466) > > strace sho

Re: batch-mode fixes [was: [PATCH] fix read-batch SEGFAULT]

2004-05-18 Thread Alberto Accomazzi
Chris Shoemaker wrote: Indeed, what you describe seems to have been the design motivation. I can share what my desired application is: I want to create a mirror of a public server onto my local machine which physically disconnected from the Internet, and keep it current. So, I intend to first rs

error in rsync protocol data stream

2004-05-18 Thread Daniel Teklu
I am doing this to rsync a file: rsync -avz /usr/local/websphere/appserver/hosts/default_host/jsp/servers/includes/file1 .txt backup.domain.com:jspfsp >> /var/log/rsync_backup.log I get these error: @ERROR: chroot failed rsync: connection unexpectedly closed (34 bytes read so far) rsync error: e

Re: rsync fails with 2 sources

2004-05-18 Thread Andreas Ley
>I often post them to the mailing list, but the best place to find fixes >is in the CVS version. (This fix has been in CVS since early May, for >instance.) See the "NEWS" file from CVS for a good summary of what has >changed. Ok. Many thanks again! Bye, Andy -- Andreas Ley, Rechenzentrum, Uni

Re: rsync fails with 2 sources

2004-05-18 Thread Wayne Davison
On Tue, May 18, 2004 at 10:26:23AM +0200, Andreas Ley wrote: > Bingo! This patch indeed fixes the problem. Is this an 'official' patch and > is there an 'official' place to look for patches to released versions? I often post them to the mailing list, but the best place to find fixes is in the CVS

Re: rsync fails with 2 sources

2004-05-18 Thread Andreas Ley
>http://lists.samba.org/archive/rsync/2004-May/009380.html Bingo! This patch indeed fixes the problem. Is this an 'official' patch and is there an 'official' place to look for patches to released versions? Many thnx, Andy -- Andreas Ley, Rechenzentrum, Universitaet Karlsruhe, D-76128 Karlsruhe,