- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: tar extract to other dir
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-27-2003 03:31 AM
тАО02-27-2003 03:31 AM
tar extract to other dir
Suppose I have a tar archieve ( relative path tar ) , is there any way that I can untar the file to other dir? Thx.
Gordon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-27-2003 03:34 AM
тАО02-27-2003 03:34 AM
Re: tar extract to other dir
http://hpux.cs.utah.edu/hppd/hpux/Gnu/tar-1.13.25/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-27-2003 03:38 AM
тАО02-27-2003 03:38 AM
Re: tar extract to other dir
Otherwise, take a look at hte pax command, as this can read both tar and cpio commands, and can extract to a different path from a tar archive that has been created with absolute path names.
man pax
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-27-2003 03:40 AM
тАО02-27-2003 03:40 AM
Re: tar extract to other dir
Thx for yr advise, but u know say the tar file is 10G, actually u need 20GB to untar the file ( double size ) which I don't wanna to happen....any idea?
Gordon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-27-2003 03:45 AM
тАО02-27-2003 03:45 AM
Re: tar extract to other dir
Just do into another dir
Then do
#tar xvf /dev/rmt/?m
that should do it .
If you want absolute path files to be restored from tar then
check this doc
http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000062909266
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-27-2003 03:46 AM
тАО02-27-2003 03:46 AM
Re: tar extract to other dir
If you dont have space for this then all I can think of is gzip the tar file (which will still need a few more Gb to write the tar.gz file in the first place - but < 10G) then you can gunzip and untar at the same time - so youre using less space than 20G.