Mit meinem rsync-Aufruf geht es jedenfalls nicht. Dort werden die hardlinks einfach aufgelöst.
# -vv messages including oversteped files
# --recursive replicate directory tree
# --times replicate file timestamp
# --delete delete files don't exist in the source
# --progress show progress while transfer
# --stats show statistic at the end
# --modify-window take account of the windows timestamp problem (only in 2sec intervalls accurate)
# --human-readable human readable units
# --copy-dirlinks transform symlink to dir into referent dir
# --links copy symlinks as symlinks (not supported by my Qnap NAS)
bp_rsync_parameter="-v --recursive --times --modify-window=2 --copy-dirlinks --delete --stats --human-readable"
rsync --out-format='%o (%i) %f%L' ${bp_rsync_parameter} ${bp_source} ${bp_destination}
Jedoch diese Option scheint das Problem zu lösen.
--hard-links
Die manpage ist dazu aber recht ausführlich. Mit anderen Worten: Die Situation scheint kompliziert und man müsse wohl viel beachten.
Das verunsichert mich etwas. Jedoch sehe ich nach meinem bisherigen Verständnis der manpage keinen Nachteil oder ein Problem in dem Vorgehen, solange die Links und das Originalfile all im Backup ("transfer set" laut rsync-manpage) enthalten sind.
Gegenstimmen? 😉