내 rsync -Hav가 하드 링크를 복사하지 않는 이유는 무엇입니까?

내 rsync -Hav가 하드 링크를 복사하지 않는 이유는 무엇입니까?

이 질문이 이전에 요청된 적이 있다는 것을 알고 있지만 어떤 이유로 내 버전이 rsync -H일관되게 작동하지 않는 것 같습니다.

하드 링크가 많은 백업 시스템이 있습니다. 더 큰 디스크에 복사하고 싶습니다. 그래서 나는 이렇게 했습니다:

rsync -Hav /source/fotoshp /source/fotoshp-M-2 /dest

그러나 source동일한 인덱스 노드를 사용하여 다음이 있습니다.

# ls -li fotoshp-M-2/0902_aves_se/index.html fotoshp/0902_aves_se/index.html
9290102 -rw-r--r-- 14 gato gato 12042 Dec  4  2016 fotoshp/0902_aves_se/index.html
9290102 -rw-r--r-- 14 gato gato 12042 Dec  4  2016 fotoshp-M-2/0902_aves_se/index.html

그리고 dest나는 이것을 가지고 있습니다 :

# ls -li fotoshp-M-2/0902_aves_se/index.html fotoshp/0902_aves_se/index.html
78908017 -rw-r--r-- 1 gato gato 12042 Dec  4  2016 fotoshp/0902_aves_se/index.html
79435377 -rw-r--r-- 1 gato gato 12042 Dec  4  2016 fotoshp-M-2/0902_aves_se/index.html

따라서 파일이 다른 inode로 복사되어 하드 링크가 끊어졌습니다. 이상한 점은 작동할 때도 있고 작동하지 않을 때도 있다는 것입니다.

rsync제가 사용하고 있는 버전은 입니다 rsync-3.1.2-5.fc26.x86_64.

관련 정보