- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Restoring Tar Archive
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
Forums
Discussions
Discussions
Discussions
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
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
10-08-2003 12:39 AM
10-08-2003 12:39 AM
I have a tape which contains two different tar archives
When i did a tar -tvf these are the two files i found
ugsapp/file1.db
/c7sysna2/file2.db
I created a file system of around 10 Gigs (these two files are hug) and mounted it under /restore and started extracting the archives inside /restore
i did
#cd /restore
#tar -xvf /dev/rmt/0m
this created a directory by name "ugsapp" under /restore and extracted file1 perfectly. When it went to file 2 it created a directory under / and tried extracting the files to /c7sysna2. This failed due to write error as there was not enough space in / to hold the files.
Can someone help me in solving how to get the extract back onto /restore and avoid /
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2003 12:42 AM
10-08-2003 12:42 AM
Re: Restoring Tar Archive
You can use pax to recover the file and remove the leading /
man pax
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2003 12:48 AM
10-08-2003 12:48 AM
Solution--
pax -irf /dev/rmt/0m # will allow interactivre rename
--
or you can use the -s switch to generate the output filename on the fly.
See man pax
-- Graham
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2003 12:55 AM
10-08-2003 12:55 AM
Re: Restoring Tar Archive
pax -r -s ',//*var//*,,' -f /dev/rmt/0m
This removes the /var and places any subdirectories/files directly under my cwd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2003 12:55 AM
10-08-2003 12:55 AM
Re: Restoring Tar Archive
cd
pax -rv -s'/^\///'
http://forums1.itrc.hp.com/service/forums/parseCurl.do?CURL=%2Fcm%2FQuestionAnswer%2F1%2C%2C0x61d7506d69a7d711abdc0090277a778c%2C00.html&admit=716493758+1065617693443+28353475