tar'ing symbolic links onle

tar'ing symbolic links onle

Post by Pau » Thu, 14 Feb 2002 18:44:25



Hello,

Is there anyway to just tar up symbolic links ?

Cheers,

 
 
 

tar'ing symbolic links onle

Post by Christia » Thu, 14 Feb 2002 21:30:24


Maybe :
    find [dir] -type l -exec tar uf file.tar {} \;


Quote:> Hello,

> Is there anyway to just tar up symbolic links ?

> Cheers,


 
 
 

tar'ing symbolic links onle

Post by Logan Sh » Thu, 14 Feb 2002 21:38:26




>Is there anyway to just tar up symbolic links ?

This should work:

        find foo -type l -print | cpio -o -H tar -O foo.tar

I don't think there is a way to do it with the tar command, but you
don't need one since the cpio command can write in the same format.

  - Logan
--
"I'll tell you something.  Luxury disgusts me."  Giorgio Armani, Jan 17, 2002
( http://dailynews.yahoo.com/h/nm/20020117/re/life_fashion_armani_dc_1.... )

 
 
 

1. TAR doesn't retain date/time of symbolic links

Hello folks,

Perhaps it's a simple question that I don't have answer.

I have tried on different Un*x and it seems that neither
native TAR nor GNU TAR restores symbolic link with
the same date and time as original ones. I am
surprised that "-p" option is useless here.

Is there any hidden option available ?

Many thanks in advance.

if you don't mind, please forward your hint to my email
account

Many thanks in advance!
KiT

2. printing problem

3. Too many symbolic links, Symbolic link loop

4. Seagate tape drive

5. How to view tar contents w/o un-tar'ing?

6. ANNOUNCE: tkWorld 1.0 Beta Release 3

7. Tar and Symbolic Links

8. GRUB fails to load Suse 8.1 on slave

9. tar and following symbolic links

10. tar symbolic link problems

11. Can a symbolic link point to a file inside a TAR archive?

12. how tar and cpio handle symbolic links

13. tar and symbolic links