Bug#346357: rsync: Do not handle hard links on remote source

2006-01-07 Thread Sebastien Koechlin
Package: rsync
Version: 2.6.4-6
Severity: normal

When using rsync to do backup of a remote host, rsync is doing a copy for
each name of a hard link:

rsync  --archive --delete --partial-dir=/tmp/rsync [EMAIL PROTECTED]:/data 
/backup/host/

On the remote host, I have:
-rw-rw-rw-   2   user group 509 Jul 25 17:19 A test file
-rw-rw-rw-   2   user group 509 Jul 25 17:19 A_test_file


On the local host, I have
-rw-rw-rw-   1  backup backup 509 Jul 25 17:19 A test file
-rw-rw-rw-   1  backup backup 509 Jul 25 17:19 A_test_file

When the file is 509 bytes, it's not a problem, but with big files, I need
twice the disk space and twice the time to backup.

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (66, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.4.31
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)

Versions of packages rsync depends on:
ii  libc6   2.3.2.ds1-22 GNU C Library: Shared libraries an
ii  libpopt01.7-5lib for parsing cmdline parameters

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#346357: rsync: Do not handle hard links on remote source

2006-01-07 Thread Paul Slootman
On Sat 07 Jan 2006, Sebastien Koechlin wrote:

 Package: rsync
 Version: 2.6.4-6
 Severity: normal
 
 When using rsync to do backup of a remote host, rsync is doing a copy for
 each name of a hard link:
 
 rsync  --archive --delete --partial-dir=/tmp/rsync [EMAIL PROTECTED]:/data 
 /backup/host/

From the manpage:

  Note that -a does not preserve hardlinks, because finding multi-
  ply-linked  files is expensive.  You must separately specify -H.
...

   -H, --hard-links
  This  tells rsync to recreate hard  links  on the  remote system
  to  be the same as the local system. Without  this  option  hard
  links are treated like regular files.

  Note  that rsync can only detect hard links if both parts of the
  link are in the list of files being sent.

  This option can be quite slow, so only use it if you need it.


Paul Slootman


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]