[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Copying hard links.



Dale Scheetz <dwarf@polaris.net> on Tue, Apr 07, 1998 at 08:35:11AM -0400:
> In the previous discussion of hard links in the archive, it was suggested
> tome that cpio and tar did manage the links correctly although cp -a did
> not.
> 
> I just tried to use tar to copy one of my CDs with hard links back onto
> the hard disk. I did a cd to that archive, and ran:
> 
> 	tar -c /cdrom | tar -xv

Tar has many options.  When copying filesystems that I want to be exact,
I use:

tar -c -W --atime-preserve --numeric-owner -p -s -f thisfile.tar -v \
--totals blah.dir

I don't recall having hard links archived as the files themselves, but I
never really checked...this would be a disturbing omission on GNU's
part.

-- 
Scott


--
To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


Reply to: