- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Simple tar issue
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-07-2001 03:12 PM
тАО02-07-2001 03:12 PM
Simple tar issue
I use this syntax:
tar -xvf /dev/rmt/0m /path/path/path/file
I get a msg (and no file):
tar tape error (5)
I can extract a listing and the file does exist on the tape.
tia!!!
Doug
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-07-2001 03:43 PM
тАО02-07-2001 03:43 PM
Re: Simple tar issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-07-2001 04:07 PM
тАО02-07-2001 04:07 PM
Re: Simple tar issue
The original command was:
tar -cvf /dev/rmt/0m *
and a second tape was
tar -cvf /dev/rmt/0m path1 path2 path3/path4
My command was
tar -xvf /dev/rmt/0m /path1/filename
is my problem the addition of the absolute path "/" and the syntax SHOULD be
tar -xvf /dev/rmt/0m path/filename
tia
Doug
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-07-2001 04:27 PM
тАО02-07-2001 04:27 PM
Re: Simple tar issue
Try tar -tvf /dev/rmt/0m | grep filename . where filename is the file you want .Suppose the output is $filename with all the path appended. After that give
tar -xvf $filename ( $filename is exactly as it shows from above output).
Hope this helps.
Good luck
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-08-2001 12:31 AM
тАО02-08-2001 12:31 AM
Re: Simple tar issue
man pax
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-08-2001 12:44 AM
тАО02-08-2001 12:44 AM
Re: Simple tar issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-08-2001 02:00 AM
тАО02-08-2001 02:00 AM
Re: Simple tar issue
Your problem definitely comes from the absolute/relative path you are using.
In your example above, you use relative path to create the tape and absolute path when trying to retrieve the data.
A simple 'tar tv' will show you how files are stored on the tape, and you should use the name as it is shown to extract your file(s).
Best regards,
Dan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-12-2001 09:03 AM
тАО02-12-2001 09:03 AM
Re: Simple tar issue
Unforetunately for me the tape did not restore the file that tar -vf was on the tape. No error msg, just no file.
Oh well, back to fbackup which as worked flawlessly for me.
Doug
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2009 01:42 PM
тАО04-30-2009 01:42 PM