A question about rsync

2004-05-18 Thread Yang Du
Hi: I really want to know how rsync works. Once it 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

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,

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,

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

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:

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

Re: [BUG] rsync 2.6.2

2004-05-18 Thread Ruediger Oertel
On Sun, 9 May 2004, Pawe Goaszewski 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 shows that

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 you

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]

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

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 the

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 which

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. Also,

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: snip 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 something

? 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: 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 to

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 problem

CVS update: rsync

2004-05-18 Thread Wayne Davison
Date: Tue May 18 08:50:17 2004 Author: wayned Update of /data/cvs/rsync In directory dp.samba.org:/tmp/cvs-serv15519 Modified Files: generator.c Log Message: Output a message when we skip a server-excluded file. Revisions: generator.c 1.84 = 1.85

CVS update: rsync/testsuite

2004-05-18 Thread Wayne Davison
Date: Tue May 18 09:47:42 2004 Author: wayned Update of /data/cvs/rsync/testsuite In directory dp.samba.org:/tmp/cvs-serv28719 Modified Files: longdir.test Log Message: Added a little more quoting. Revisions: longdir.test1.10 = 1.11

CVS update: rsync/patches

2004-05-18 Thread Wayne Davison
Date: Tue May 18 09:53:28 2004 Author: wayned Update of /data/cvs/rsync/patches In directory dp.samba.org:/tmp/cvs-serv29952 Modified Files: copy-atimes.diff date-only.diff dir-times.diff Log Message: Fixed failing hunks. Revisions: copy-atimes.diff1.7 = 1.8

CVS update: rsync

2004-05-18 Thread Wayne Davison
Date: Tue May 18 09:54:52 2004 Author: wayned Update of /data/cvs/rsync In directory dp.samba.org:/tmp/cvs-serv30104 Modified Files: NEWS Log Message: A few minor text improvements. Revisions: NEWS1.176 = 1.177

CVS update: rsync/patches

2004-05-18 Thread Wayne Davison
Date: Tue May 18 09:52:32 2004 Author: wayned Update of /data/cvs/rsync/patches In directory dp.samba.org:/tmp/cvs-serv29758 Modified Files: verify-patches Log Message: Do a better job of finding the .rej files to edit (since they can be in a subdir). Revisions: verify-patches