Re: [patch] Correct configure test for sin_len to compile on Tru64 Unix

2004-02-25 Thread Wayne Davison
On Wed, Feb 25, 2004 at 07:32:52PM -0800, Wayne Davison wrote: > So, it looks like we need 2 configure tests and separate defines for > sa_len and sin_len. How about the appended patch? This applies to the very latest CVS source and would require the running of "autoconf" and "autoheader" after a

Re: [patch] Correct configure test for sin_len to compile on Tru64 Unix

2004-02-25 Thread Wayne Davison
On Wed, Feb 25, 2004 at 01:44:58PM +0100, Petter Reinholdtsen wrote: > The problem is that the code in configure check for sockaddr.sa_len, > while the code uses sockaddr.sin_len. The problem is deeper than that. The HAVE_SOCKADDR_LEN define surrounds both code that uses sin_len and sa_len, so yo

Re: remote files not being deleted

2004-02-25 Thread jw schultz
On Wed, Feb 25, 2004 at 08:36:26PM -0600, Trey Nolen wrote: > I've got an issue with remote files being deleted after the local file has > been deleted. For some reason, this isn't happening. I'm running rsync > 2.5.6 protocol 26 (yes, I know there are newer versions, but logistics > dictates that

Re: remote files not being deleted

2004-02-25 Thread Wayne Davison
On Wed, Feb 25, 2004 at 08:36:26PM -0600, Trey Nolen wrote: > rsync -avR -e ssh --numeric-ids --delete --progress --delete-after > --ignore-errors --exclude /proc/ / [EMAIL PROTECTED]:/ That lack of deletion is fixed in 2.6.0. You can work around the problem by either getting rid of the -R option

Re: rsync & rotated logs

2004-02-25 Thread Wayne Davison
On Wed, Feb 25, 2004 at 11:14:47PM +0100, Andrzej Filip wrote: > What is the best way to keeps rsynced copy of rotate log files ? > > x.log -> x.log.1 -> x.log.2.gz -> ... > > Can rsync "notice" changes of file name and avoid needless synchronization ? One thing you can do is to run the same log

remote files not being deleted

2004-02-25 Thread Trey Nolen
I've got an issue with remote files being deleted after the local file has been deleted. For some reason, this isn't happening. I'm running rsync 2.5.6 protocol 26 (yes, I know there are newer versions, but logistics dictates that I can't upgrade right now). I have used the --delete, --delete-aft

Re: rsync & rotated logs

2004-02-25 Thread jw schultz
On Wed, Feb 25, 2004 at 11:14:47PM +0100, Andrzej Filip wrote: > What is the best way to keeps rsynced copy of rotate log files ? > > x.log -> x.log.1 -> x.log.2.gz -> ... > > Can rsync "notice" changes of file name and avoid needless synchronization ? Change how you rotate log files so that onc

Re: --exclude and --delete

2004-02-25 Thread andrew
John Van Essen wrote: rsync -av --exclude "/user/profile/" --delete /home/user [EMAIL PROTECTED]:/home Since there is no trailing slash on '/home/user', the sender root is at '/home/', so the exclude pattern is correct in that case. But the receiver path is '/home', so the root for building the

Re: --exclude and --delete

2004-02-25 Thread andrew
Wayne Davison wrote: On Wed, Feb 25, 2004 at 02:32:47PM +1100, andrew wrote: rsync -av --exclude "/user/profile/" --delete /home/user [EMAIL PROTECTED]:/home This works as I expect, sender:/home/user/profile/ is not copied, except that receiver:/home/user/profile/ is deleted. I can't duplica

Re: --exclude and --delete

2004-02-25 Thread John Van Essen
On Thu, 26 Feb 2004, andrew <[EMAIL PROTECTED]> wrote: > > Paul Slootman wrote: >> On Wed 25 Feb 2004, andrew wrote: >> >>>rsync -av --exclude "/user/profile/" --delete /home/user [EMAIL PROTECTED]:/home >>> >>>This works as I expect, sender:/home/user/profile/ is not copied, except >>>that recei

Re: --exclude and --delete

2004-02-25 Thread andrew
Paul Slootman wrote: On Wed 25 Feb 2004, andrew wrote: rsync -av --exclude "/user/profile/" --delete /home/user [EMAIL PROTECTED]:/home This works as I expect, sender:/home/user/profile/ is not copied, except that receiver:/home/user/profile/ is deleted. Hmm, wouldn't the exclude need to be

rsync & rotated logs

2004-02-25 Thread Andrzej Filip
What is the best way to keeps rsynced copy of rotate log files ? x.log -> x.log.1 -> x.log.2.gz -> ... Can rsync "notice" changes of file name and avoid needless synchronization ? -- Andrzej [en:Andrew] Adam Filip [EMAIL PROTECTED] [EMAIL PROTECTED] http://anfi.webhop.net http://slashdot.org/~an

Re: patch to avoid race condition in rsync CVS

2004-02-25 Thread Wayne Davison
OK, here's a patch that tries to deal with the case of the rename resulting in a copy. It also attempts to deal with the possibility that the source of the copy might not have read permissions set, and the destination of the copy might not have write permissions. This passes "make check", but no

Re: patch to avoid race condition in rsync 2.5.6

2004-02-25 Thread Wayne Davison
On Wed, Feb 25, 2004 at 01:47:56PM +0100, Petter Reinholdtsen wrote: > Any hopes of getting this patch included into rsync? The problem is > still present in rsync 2.6.0. Unfortunately, that patch is too simplistic -- e.g. it doesn't handle the case where the file had to be copied into place. I'

Re: Speed up rsync ,cwRsync and replay changes against a file

2004-02-25 Thread Craig Barratt
> I recently installed and setup cwRsync on a Windows 2000 Server - > http://www.itefix.no/cwrsync/ -, and I was very impressed. I just > followed the instructions on the website and got it working.=20 > > I am using it to mirror 30Gb's of mailboxes everynight (only grabbing > the changes to each

Re: SV: Rsync under cygwin

2004-02-25 Thread Darragh Sherwin
Hi Tevfik, I'm gettting the same error when I try that command. Thanks Tevfik Karagulle wrote: Hi, Try rsync.exe --recursive /cygdrive/d/BILLS_CMS 192.168.213.102::PWB3 Rgrds Tev -Opprinnelig melding- Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] vegne av Darragh Sherwin Sendt: 25

Re: ssh and rsyncd.conf

2004-02-25 Thread Tom Allen
On Wed, 25 Feb 2004, Paul Slootman wrote: > > How do I get rsync to transfer the files using the rules called out in the > > rsyncd.conf file while using ssh? > > You'd have to forward the rsync port over an ssh connection: > > ssh -L8730:127.0.0.1:873 host > > Then, (separately) use rsync li

Re: patch to avoid race condition in rsync 2.5.6

2004-02-25 Thread Petter Reinholdtsen
Any hopes of getting this patch included into rsync? The problem is still present in rsync 2.6.0. [Petter Reinholdtsen, 2003-05-20] > There is a small race condition in rsync 2.5.6. When the transfer > is finished, and the file is moved into place, there is a short time > period where the new f

[patch] Correct configure test for sin_len to compile on Tru64 Unix

2004-02-25 Thread Petter Reinholdtsen
The last versions of rsync fail to compile on Tru64 Unix (alpha), because of a typo in configure.in. The problem is that the code in configure check for sockaddr.sa_len, while the code uses sockaddr.sin_len. This patch fixes the problem. Please include it in the next version of rsync. diff -ur

SV: Rsync under cygwin

2004-02-25 Thread Tevfik Karagulle
Hi, Try rsync.exe --recursive /cygdrive/d/BILLS_CMS 192.168.213.102::PWB3 Rgrds Tev -Opprinnelig melding- Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] vegne av Darragh Sherwin Sendt: 25. februar 2004 12:39 Til: [EMAIL PROTECTED] Emne: Rsync under cygwin Hi, I have rsync client and

exclude everything and include directories

2004-02-25 Thread Don Shesnicky
I'm trying to update some laptops from a large server directory for an EDA app. Most of the time I just rsync the entire directory and exclude the odd item. In this case it's the reverse where I want to exclude everything but include only the odd directory. I thought it'd be easy but can't seem to

Rsync under cygwin

2004-02-25 Thread Darragh Sherwin
Hi, I have rsync client and servers running under 3 Win2K boxes, and I can sync when the source is remote and the target is local, but when the source is local and the target is remote, I get the following error: rsync.exe --recursive /cygdrive/d/BILLS_CMS rsync://192.168.213.102/PWB3 rsync: re

Speed up rsync ,cwRsync and replay changes against a file

2004-02-25 Thread Reuben Pearse
Hi guys, I recently installed and setup cwRsync on a Windows 2000 Server - http://www.itefix.no/cwrsync/ -, and I was very impressed. I just followed the instructions on the website and got it working. I am using it to mirror 30Gb's of mailboxes everynight (only grabbing the changes to each file

Recall: windows and log time with %t is not displayed

2004-02-25 Thread Calis, Edwin
Calis, Edwin would like to recall the message, "windows and log time with %t is not displayed". -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Re: --exclude and --delete

2004-02-25 Thread Paul Slootman
On Wed 25 Feb 2004, andrew wrote: > > rsync -av --exclude "/user/profile/" --delete /home/user [EMAIL PROTECTED]:/home > > This works as I expect, sender:/home/user/profile/ is not copied, except > that receiver:/home/user/profile/ is deleted. Hmm, wouldn't the exclude need to be "/profile", as

Re: ssh and rsyncd.conf

2004-02-25 Thread Paul Slootman
On Tue 24 Feb 2004, Jacque Mergens wrote: > > rsync -rsh="/usr/bin/ssh" filename host:/dir/filename > > > > But I am not able to perform this > > > > rsync -rsh="/usr/bin/ssh" filename host:module_name No, because mdoules are only handled by the rsync daemon, which is contacted via its ow

windows and log time with %t is not displayed

2004-02-25 Thread Calis, Edwin
Brian, In the windows environment just call %time% before the %t it will add the time to the log. Greetings Edwin Calis -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html