delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/10/26/05:42:22

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Mon, 26 Oct 2009 11:42:02 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Rsync link-dest not working for a host with the most recent rsync/cygwin 1.7
Message-ID: <20091026104202.GG16678@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <2bbbac860910210102m76657f7eu123bf229035b0119 AT mail DOT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <2bbbac860910210102m76657f7eu123bf229035b0119@mail.gmail.com>
User-Agent: Mutt/1.5.17 (2007-11-01)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Oct 21 01:02, Chris Francy wrote:
> So to demonstrate the link-dest function on my linux box here is a
> simple example using relative directories including the output on my
> backup server (debian linux 5.0) (http://pastebin.com/m191da91f).
> 
> I have a test case (http://pastebin.com/m6797debc) that I ran against
> both two of my systems to demonstrate the difference in behavior.
> 
> Here (http://pastebin.com/m77f9f3b6) is my output when I run the
> command on my backup server to get the stuff off my 1.5 host.

I'm somewhat puzzled.  I tried both of your testcases, and the link-dest
created a hardlink in dest2 from the original in dest1 just fine.  And,
yes, that's under Cygwin 1.7.  The only noticable difference was that
I'm not running a rsync server on the server side, rather I used the
'single colon' syntax to connect to the server using a remote shell.

Here's the result under Cygwin 1.7:

$ uname -r
1.7.0(0.216/5/3)

$ rsync -vrltH --delete -pgo --stats -z -D --numeric-ids \
  --link-dest=../dest1/ my_server:tmp/sourcedir/testfile \
  dest2/testfile
receiving incremental file list

Number of files: 1
Number of files transferred: 0
Total file size: 1048576 bytes
Total transferred file size: 0 bytes
Literal data: 0 bytes
Matched data: 0 bytes
File list size: 26
File list generation time: 0.001 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 11
Total bytes received: 40

sent 11 bytes  received 40 bytes  34.00 bytes/sec
total size is 1048576  speedup is 20560.31

$ stat */*
  File: `dest1/testfile'
  Size: 1048576         Blocks: 1024       IO Block: 65536  regular file
Device: 2878ad22h/678997282d    Inode: 3940649674099221  Links: 2
Access: (0664/-rw-rw-r--)  Uid: (11001/ corinna)   Gid: (11125/vinschen)
Access: 2009-10-26 11:31:51.000000000 +0100
Modify: 2009-10-26 11:20:10.000000000 +0100
Change: 2009-10-26 11:33:00.333478700 +0100
  File: `dest2/testfile'
  Size: 1048576         Blocks: 1024       IO Block: 65536  regular file
Device: 2878ad22h/678997282d    Inode: 3940649674099221  Links: 2
Access: (0664/-rw-rw-r--)  Uid: (11001/ corinna)   Gid: (11125/vinschen)
Access: 2009-10-26 11:31:51.000000000 +0100
Modify: 2009-10-26 11:20:10.000000000 +0100
Change: 2009-10-26 11:33:00.333478700 +0100

As you can see, the files are hardlinked to one another, as expected.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019