GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Restore files using tar
Operating System - HP-UX
1847860
Members
3136
Online
104021
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
Forums
Discussions
back
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
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
04-02-2003 06:45 PM
04-02-2003 06:45 PM
Dear all,
I have a sort of files to restore in the /devlp/report/umm/ directory. I use the command:
# tar xvf /dev/rmt/0m /devlp/report/umm/*
But no response!
Anyone has an idea? Thanks a lot!
Best Regards
Ajk
I have a sort of files to restore in the /devlp/report/umm/ directory. I use the command:
# tar xvf /dev/rmt/0m /devlp/report/umm/*
But no response!
Anyone has an idea? Thanks a lot!
Best Regards
Ajk
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2003 06:52 PM
04-02-2003 06:52 PM
Re: Restore files using tar
Hi,
I believe you just want to specify a file or a directory for your last argument, and not a wildcard. Also, the default for tar is to use /dev/rmt/0m, so you don't have to specify it. Have you tried just testing the tape to see if tar can read it? Something like this:
tar tv /devlp/report/umm
should let you know if tar can read the files from that directory.
JP
I believe you just want to specify a file or a directory for your last argument, and not a wildcard. Also, the default for tar is to use /dev/rmt/0m, so you don't have to specify it. Have you tried just testing the tape to see if tar can read it? Something like this:
tar tv /devlp/report/umm
should let you know if tar can read the files from that directory.
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2003 06:55 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2003 06:57 PM
04-02-2003 06:57 PM
Re: Restore files using tar
I think the first thing that I would do is to verify that the tape has what you want on it and also how is it listed. In other words does each file listed start with a dot or a slash. To do this:
tar -tvf /dev/rmt/0m will output a file list to the screen. Then determine if it is a relative or explicit path. A relative path starts with a . so you would have to cd to the head of the directory tree and extract the files from there;
cd /
tar -xvf /dev/rmt/0m ./devlp/report/umm/
I'll bet that is the case since in your example you listed the explicit path that didn't start with a dot (./)
Good luck
tar -tvf /dev/rmt/0m will output a file list to the screen. Then determine if it is a relative or explicit path. A relative path starts with a . so you would have to cd to the head of the directory tree and extract the files from there;
cd /
tar -xvf /dev/rmt/0m ./devlp/report/umm/
I'll bet that is the case since in your example you listed the explicit path that didn't start with a dot (./)
Good luck
If it has wheels or a skirt, you can't afford it.
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 2026 Hewlett Packard Enterprise Development LP