1
I'd like to back up my data preserving hard link to a network drive connected through cifs. Is it possible?
My system is Linux (EXT4) and I have two network drives: one is also Linux (EXT4) and the other is Windows. Both are mounted through cifs.
I tried rsync -avzpH
but it seemed to work only within a file system.
I don't know if I missed an option or it is not possible.
Hardlinks themselves can't span filesystems, since a file and a hardlink to it share the same inode. If you have a hardlink within a filesystem, the
-H
option will makersync
copy it.However, your link is probably a symbolic link, which is copied if you use the
-l
or-a
(which implies-l
) switch. You are using the-a
switch, so it should copy your symlinks.tldr: What you're doing should work. – Dr Kitty – 2012-03-28T22:43:03.120
So unlike symbolic links, hardlinks can not be preserved in my backup through rsync if I save it on another drive even though both of the file systems formatted in same format? Did I understand correctly? – microbe – 2012-03-29T14:37:08.580