HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: extracting absolute path archive
Operating System - HP-UX
1831029
Members
2609
Online
110018
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
09-12-2002 09:12 AM
09-12-2002 09:12 AM
Hi,
I have a tar archive that I need to extract that uses an absolute path that conflicts with an absolute path I already have on my system and don't want to disrupt.
Does anyone know how to extract a tar archive so that the absolute path can be placed relative to some other higher level path, or am I hosed?
- allan
I have a tar archive that I need to extract that uses an absolute path that conflicts with an absolute path I already have on my system and don't want to disrupt.
Does anyone know how to extract a tar archive so that the absolute path can be placed relative to some other higher level path, or am I hosed?
- allan
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2002 09:20 AM
09-12-2002 09:20 AM
Solution
Yet another reason never to use absolute paths.
I believe that 'pax' can deal with this. pax is a utility that can read or write tar and cpio archives. There is some built in functionality that will allow you to do things with the path of the files as your restore.
Do a 'man pax' for more information and examples.
I believe that 'pax' can deal with this. pax is a utility that can read or write tar and cpio archives. There is some built in functionality that will allow you to do things with the path of the files as your restore.
Do a 'man pax' for more information and examples.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2002 09:20 AM
09-12-2002 09:20 AM
Re: extracting absolute path archive
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x589bd5fab40ed6118ff40090279cd0f9,00.html
says to try using pax:
"If you created the tar file using relative pathnames for the input files, tar will extract the files to locations relative to your current directory.
If you created the tar file using absolute pathnames for the input files, tar will extract the files to that absolute path.
An alternative for changing the extract destination for a tar file created with absolute pathnames is to use pax. An example is:
tar cvf /tmp/users.tar /home/users
tar xvf /tmp/users.tar
will extract files back to their original locations because the input file/dir was specified with an absolute pathname (/home/users)
pax -r -s,/home/users,/home/users2, -f /tmp/users.tar
will extract files changing /home/users to /home/users2
See the man page for more info. "
Cheryl
says to try using pax:
"If you created the tar file using relative pathnames for the input files, tar will extract the files to locations relative to your current directory.
If you created the tar file using absolute pathnames for the input files, tar will extract the files to that absolute path.
An alternative for changing the extract destination for a tar file created with absolute pathnames is to use pax. An example is:
tar cvf /tmp/users.tar /home/users
tar xvf /tmp/users.tar
will extract files back to their original locations because the input file/dir was specified with an absolute pathname (/home/users)
pax -r -s,/home/users,/home/users2, -f /tmp/users.tar
will extract files changing /home/users to /home/users2
See the man page for more info. "
Cheryl
"Downtime is a Crime."
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP