[buug] backup a dir with hard links

Jeremy Brand jeremy at nirvani.net
Tue Feb 13 12:20:14 PST 2007

Hi John,

You might want to experiment with the -H option to rsync.


Thus spake John de la Garza:

> If I have a file and create a hard link to it like:
> touch foo
> ln foo bar
> and want to back up the directory that contains this link, it seems that cp 
> and rsync are not able to keep the link structure but if I use tar it does 
> keep it
> Is it possible to keep the links with cp or rsync or must I use tar or 
> another archiving thing?  I have tried cp -RH which is not the way to go...
> _______________________________________________
> Buug mailing list
> Buug at weak.org
> http://www.weak.org/mailman/listinfo/buug

"Prediction is very difficult, especially of the future."
                                    Niels Bohr

More information about the buug mailing list