1834461 Members
3662 Online
110067 Solutions
New Discussion

tar

 
SOLVED
Go to solution
Gerald_13
Frequent Advisor

tar

hi,
is it possible to extract tar archive(tar xvf) and not restore file existing on the system, and restore only files & dir who are not exist. Is a option exist ?

thanks very much for your help
regards,
Gerald
2 REPLIES 2
Steven E. Protter
Exalted Contributor

Re: tar

-C

option from man tar

this will do what you wish.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Alzhy
Honored Contributor
Solution

Re: tar

Gerald..

HP's version only offers relocation as SEP suggests. However, if you want the functionality you really need (ie. extract only files or directories) that does not exist on wherever you are extracting - then your best bet is to use GNU tar.

Get it from the HP-UX Built site...
Hakuna Matata.