--recursive and -H

Henri Shustak henri.shustak at gmail.com
Mon Jun 28 14:39:04 MDT 2010

> Aaah, thanks for the insight.  RSYNC must transfer the file regardless of the link count, but it also takes note of the missing link.  So, it probably considers an inode with multiple links "resolved" only after it finds a brother/sister link and deletes the duplicate.

You may also be interested in the rsync --link-dest option. The rsync --link-dest option is used in different ways by a variety of backup scripts and utilities.

A screen cast about how this works with LBackup is available from the URL below : 
  - URL <http://www.lbackup.org/screencasts> 
  - Title "Basic Backup Local Machine"

Finally, you may find the following list of commands and output of interest : 

  # touch /tmp/file1
  # ls -l /tmp/file1 
  -rw-r--r--  1 root  wheel  0 Jun 29 07:34 /tmp/file1
  # ln /tmp/file1 /tmp/file2
  # ls -l /tmp/file1 /tmp/file2
  -rw-r--r--  2 root  wheel  0 Jun 29 07:34 /tmp/file1
  -rw-r--r--  2 root  wheel  0 Jun 29 07:34 /tmp/file2

Hope this helps.

 This email is protected by LBackup

More information about the rsync mailing list