[buug] backup a dir with hard links
John de la Garza
john at jjdev.com
Tue Feb 13 17:26:35 PST 2007
I maybe misreading, but I don't understand how this link applies to
me. I am not having a problem with sym links, but rather hard links
(which, as you probably know can only be files not directories, like
the link you posted talks about)
I am I missing something?
I want my copy to have the same hard links as the source.
On Feb 13, 2007, at 12:45 PM, jwithers wrote:
> http://lists.samba.org/archive/rsync/2004-June/009666.html
>
> On Tue, 2007-02-13 at 11:56 -0800, John de la Garza wrote:
>> 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
> --
> jwithers <grayarea at reddagger.org>
>
> _______________________________________________
> Buug mailing list
> Buug at weak.org
> http://www.weak.org/mailman/listinfo/buug
More information about the buug
mailing list