according to rsync command - MAN page:
#-a, --archive This is equivalent to -rlptgoD. It is a quick way of saying you want recursion and want to preserve almost everything (with -H being a notable omission). The only exception to the above equivalence is when --files-from is specified, in which case -r is not implied.
Note that -a does not preserve hardlinks, because finding multiply-linked files is expensive. You must separately specify -H.
#it's seems that we must use -H flag in order to copy also the hard links (realy?)
but according to my tests even if I not use the -H flag in rsync command the hard link copied successfully from local directory to other machine ? (very strange ?)
for example
ls -ltr
-rw-r--r-- 1 root root 0 Jan 20 15:06 test.file.hard.link
-rw-r--r-- 1 root root 0 Jan 20 15:06 test.file
rsync -Wav --progress /var/tmp/Backup_test_for_hard_link node1:/var/tmp
in node1 under /var/tmp I see the hard links files:
-rw-r--r-- 1 root root 0 Jan 20 15:06 test.file.hard.link
-rw-r--r-- 1 root root 0 Jan 20 15:06 test.file
please advice how it can be ?