Re: Error message when trying to sync
On Thu 29 Apr 2004, Ryan Holowaychuk wrote: I am getting the following error [EMAIL PROTECTED] etc]# rsync 192.168.100.25::backup You're missing the local target (or source, depending on what you were trying to do). rsync: failed to connect to 192.168.100.25: Connection refused rsync error: error in socket IO (code 10) at clientserver.c(83) Is there actually a rsync daemon running in 192.168.100.25 ? Connection refused generally means that there is no process listening to the TCP port in question (or it's firewalled). What does telnet 192.168.100.25 873 give? Also a connection refused? Then it's not an rsync problem per se. Paul Slootman -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
rsync 2.6.1 fails tests on OSF1
At least it does for me on v5.1 It is a result of a bug in sh on OSF1. $var? doesn't do file-globbing if $var contains a / (it does if it doesn't). This causes a touch command in teh merge test to fail. WORKAROUND: Set BIN_SH=xpg4 in your environment while running the test. This causes the POSIX version of sh to be used (see man sh on OSF1). -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
large file support in 2.6.1
The large file support in configure tests for working file-locking. This may fail if you are building over NFS and the NFS locking isn't working. rsync doesn't actually use file-locking, so this test causes it to remove large-file support unnecessarily. A workaround might be to build on a local file system. -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
rsync-2.6.2pre1: In clientname.c `AI_NUMERICHOST' undeclared
Hi, I just tried to compile rsync-2.6.2pre1 under AIX 4.3 (gcc 2.95.3) and got the following compiler error: gcc -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -c clientname.c -o clientname.o clientname.c: In function `client_name': clientname.c:121: `AI_NUMERICHOST' undeclared (first use in this function) In analogy to the coding in access.c I replaced in clientname.c hints.ai_flags = AI_NUMERICHOST; by #ifdef AI_NUMERICHOST hints.ai_flags = AI_NUMERICHOST; #endif and the compiling works. Sorry, I am not a C expert. Jens -- Dr. Jens SchleusenerT-Systems Solutions for Research GmbH Tel: +49 551 709-2493 Bunsenstr.10 Fax: +49 551 709-2169 D-37073 Goettingen [EMAIL PROTECTED] http://www.t-systems.com/ -- 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: rsync-2.6.2pre1: In clientname.c `AI_NUMERICHOST' undeclared
On Fri, Apr 30, 2004 at 03:30:45PM +0200, Jens Schleusener wrote: #ifdef AI_NUMERICHOST hints.ai_flags = AI_NUMERICHOST; #endif Thanks, I've added the #ifdef as you suggested. ..wayne.. -- 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: large file support in 2.6.1
On Fri, Apr 30, 2004 at 11:45:47AM +0100, Gordon Lack wrote: rsync doesn't actually use file-locking, so this test causes it to remove large-file support unnecessarily. Rsync uses range-locking in its daemon code to implement the max connections option. A workaround might be to build on a local file system. I think some simple tweaking of the test function might make the test better. The appended C code attempts to create the lock file in /tmp and falls back to creating the old conftest.dat if that didn't work. If you try running this program, it should give you an exit status of 1. ..wayne.. #define _FILE_OFFSET_BITS 64 #include stdio.h #include fcntl.h #include sys/types.h #include sys/wait.h int main(void) { struct flock lock; int status; char tpl[32] = /tmp/locktest.XX; int fd = mkstemp(tpl); if (fd 0) { strcpy(tpl, conftest.dat); fd = open(tpl, O_CREAT|O_RDWR, 0600); } lock.l_type = F_WRLCK; lock.l_whence = SEEK_SET; lock.l_start = 0; lock.l_len = 1; lock.l_pid = 0; fcntl(fd,F_SETLK,lock); if (fork() == 0) { lock.l_start = 1; _exit(fcntl(fd,F_SETLK,lock) == 0); } wait(status); unlink(tpl); exit(WEXITSTATUS(status)); } -- 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: rsync 2.6.1 fails tests on OSF1
On Fri, Apr 30, 2004 at 11:22:37AM +0100, Gordon Lack wrote: $var? doesn't do file-globbing if $var contains a / (it does if it doesn't). I've tweaked the merge test to not rely on the shell's file-globbing to get things done. Thanks for the report, ..wayne.. -- 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: --write-batch just hangs?
On Thu, Apr 29, 2004 at 05:00:32PM -0400, Chris Shoemaker wrote: Instead of any update, with the --write-batch=mytest argument, rsync just hangs. The batch code is still experimental (as noted in the man page), so I'm not surprised by this. The code still needs someone to test it and fix it to make it solid. Any volunteers? ..wayne.. -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
[rsync-announce] rsync 2.6.2 released
Rsync version 2.6.2 has been released. It is a bugfix release that mainly fixes a bug with the --relative option (-R) in 2.6.1 that could cause files to be transferred incorrectly. This only affected a source right at the root of the filesystem, such as / or /* (using . as the source after a chdir to / was not affected, however). See the release NEWS for the details of what else was fixed: http://rsync.samba.org/ftp/rsync/rsync-2.6.2-NEWS Go to the download page to grab the new version: http://rsync.samba.org/download.html ..wayne.. signature.asc Description: Digital signature ___ rsync-announce mailing list [EMAIL PROTECTED] http://lists.samba.org/mailman/listinfo/rsync-announce
--backup requires remote connection?
Does the --backup, --backup-dir set require that either then source or target be a remote connection? Test folder hierarchy: /Users/localskaiser/source/myfile.txt /Users/localskaiser/source/a/b/c/newfile.txt /Users/localskaiser/target /Users/localskaiser/archive I can not get the following command to work (after running it once, and then modifying newfile.txt): [skaiser-pbg4:~] localska% /usr/local/bin/rsync --delete --backup --backup-dir=/Users/localskaiser/archive -a /Users/localskaiser/source /Users/localskaiser/target stat /Users/localskaiser/archive/source/a/b/c/newfile.txt failed: No such file or directory rsync error: some files could not be transferred (code 23) at main.c(639) However, this command works (after running it once, and then modifying newfile.txt): [skaiser-pbg4:~] localska% /usr/local/bin/rsync --delete --backup --backup-dir=/Users/localskaiser/archive -a [EMAIL PROTECTED]::skaiser/current /Users/localskaiser/target I am running RsyncX 2.1 (rsync 2.6.0 protocol version 27) on both the local and rsync server machines. Thanks, Sean Kaiser -- 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: --backup requires remote connection?
On Fri, Apr 30, 2004 at 04:19:35PM -0400, Sean M. Kaiser wrote: [skaiser-pbg4:~] localska% /usr/local/bin/rsync --delete --backup --backup-dir=/Users/localskaiser/archive -a /Users/localskaiser/source /Users/localskaiser/target This command works fine for me when used as you described. stat /Users/localskaiser/archive/source/a/b/c/newfile.txt failed: No such file or directory I assume that message is coming from the code set_perms() code that is trying to change the permissions on the newly-created backup file. So, something may have gone wrong during the creation of that backup file. Check the permissions and such for the backup path (though it's weird if rsync didn't display some other error before the stat one). [skaiser-pbg4:~] localska% /usr/local/bin/rsync --delete --backup --backup-dir=/Users/localskaiser/archive -a [EMAIL PROTECTED]::skaiser/current /Users/localskaiser/target That command uses a different backup dir: .../archive/current rather than .../archive/source. ..wayne.. -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Simultaneous rsyncs?
Hi, What would happen if two people ran rsync on the same set of source files to the same destination machine? Do we need some sort of queuing or interlock mechanism to prevent simultaneous rsyncs? We have a script that uses rsync to distribute files from our AFS space here to the local disks of about twenty-five machines around the US and Europe. There are about ten or fifteen people here who update the source directory and run the distribution script. So, someone might update the source directory while someone else is already doing a distribution. That's actually not so bad, since when the first person then does a distribution, things will again be in sync. More problematical is when two or more distributions overlap. What would happen in that case? It takes about twenty or thirty minutes to distribute the files to all the machines on our list. So, it's possible that the two rsyncs would be working on the same destination machine at the same time. If we don't need some sort of queue or interlock, then do we need to run a third rsync after the overlapping pair have finished to make sure that everything's OK? Thanks, Marc -- Spitzer Space Telescope Downlink Systems Engineer +1 818 393-7786 (voice) +1 818 393-6236 (fax) Mail Stop: 264-767 mailto:[EMAIL PROTECTED] Pager: +1 800 759- PIN 5877194 mailto:[EMAIL PROTECTED] http://www.skytel.com/Paging/pageme.cgi?pin=5877194,1 -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
CVS update: rsync
Date: Fri Apr 30 16:10:45 2004 Author: wayned Update of /data/cvs/rsync In directory dp.samba.org:/tmp/cvs-serv2142 Modified Files: clientname.c Log Message: Only refer to AI_NUMERICHOST if it is defined. Revisions: clientname.c1.21 = 1.22 http://www.samba.org/cgi-bin/cvsweb/rsync/clientname.c.diff?r1=1.21r2=1.22 ___ rsync-cvs mailing list [EMAIL PROTECTED] http://lists.samba.org/mailman/listinfo/rsync-cvs
CVS update: rsync
Date: Fri Apr 30 17:53:51 2004 Author: wayned Update of /data/cvs/rsync In directory dp.samba.org:/tmp/cvs-serv22498 Modified Files: NEWS Log Message: Mention the last few tweaks that made it into 2.6.2. Revisions: NEWS1.172 = 1.173 http://www.samba.org/cgi-bin/cvsweb/rsync/NEWS.diff?r1=1.172r2=1.173 ___ rsync-cvs mailing list [EMAIL PROTECTED] http://lists.samba.org/mailman/listinfo/rsync-cvs
CVS update: rsync/packaging/lsb
Date: Fri Apr 30 18:03:33 2004 Author: wayned Update of /data/cvs/rsync/packaging/lsb In directory dp.samba.org:/tmp/cvs-serv25000/packaging/lsb Modified Files: rsync.spec Log Message: Preparing for release of 2.6.2 Revisions: rsync.spec 1.14 = 1.15 http://www.samba.org/cgi-bin/cvsweb/rsync/packaging/lsb/rsync.spec.diff?r1=1.14r2=1.15 ___ rsync-cvs mailing list [EMAIL PROTECTED] http://lists.samba.org/mailman/listinfo/rsync-cvs
CVS update: rsync
Date: Fri Apr 30 18:03:33 2004 Author: wayned Update of /data/cvs/rsync In directory dp.samba.org:/tmp/cvs-serv25000 Modified Files: configure configure.in rsync.1 rsync.yo rsyncd.conf.5 rsyncd.conf.yo Log Message: Preparing for release of 2.6.2 Revisions: configure 1.187 = 1.188 http://www.samba.org/cgi-bin/cvsweb/rsync/configure.diff?r1=1.187r2=1.188 configure.in1.195 = 1.196 http://www.samba.org/cgi-bin/cvsweb/rsync/configure.in.diff?r1=1.195r2=1.196 rsync.1 1.183 = 1.184 http://www.samba.org/cgi-bin/cvsweb/rsync/rsync.1.diff?r1=1.183r2=1.184 rsync.yo1.167 = 1.168 http://www.samba.org/cgi-bin/cvsweb/rsync/rsync.yo.diff?r1=1.167r2=1.168 rsyncd.conf.5 1.63 = 1.64 http://www.samba.org/cgi-bin/cvsweb/rsync/rsyncd.conf.5.diff?r1=1.63r2=1.64 rsyncd.conf.yo 1.67 = 1.68 http://www.samba.org/cgi-bin/cvsweb/rsync/rsyncd.conf.yo.diff?r1=1.67r2=1.68 ___ rsync-cvs mailing list [EMAIL PROTECTED] http://lists.samba.org/mailman/listinfo/rsync-cvs
CVS update: rsync
Date: Fri Apr 30 19:14:52 2004 Author: wayned Update of /data/cvs/rsync In directory dp.samba.org:/tmp/cvs-serv6046 Modified Files: NEWS Log Message: Additional testing confirmed the limited scope of the sources affected by the -R sorting bug. Revisions: NEWS1.173 = 1.174 http://www.samba.org/cgi-bin/cvsweb/rsync/NEWS.diff?r1=1.173r2=1.174 ___ rsync-cvs mailing list [EMAIL PROTECTED] http://lists.samba.org/mailman/listinfo/rsync-cvs
CVS update: rsync
Date: Fri Apr 30 20:39:29 2004 Author: wayned Update of /data/cvs/rsync In directory dp.samba.org:/tmp/cvs-serv22685 Modified Files: README Log Message: Changed the order that ssh and rsh are mentioned. Revisions: README 1.28 = 1.29 http://www.samba.org/cgi-bin/cvsweb/rsync/README.diff?r1=1.28r2=1.29 ___ rsync-cvs mailing list [EMAIL PROTECTED] http://lists.samba.org/mailman/listinfo/rsync-cvs