- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how to display tape contents ?
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
08-15-2001 10:59 AM
08-15-2001 10:59 AM
1.How to show all of the files on the tape ?
2.How to show perticular type of files (*.tmp)
on the tape ?
3.How to extract the perticular type of file(s)
from tape to current/any directory?
Thnx in advance.
Vasu
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2001 11:07 AM
08-15-2001 11:07 AM
SolutionIf the data stored on tape using tar then to see contents
#tar tvf tapeaddress
if the data stored on tape using fbackup then use
#frecover -f tapeaddress -I file.index
file.index will be created in text format with listing of files
To recover files to original location:
# frecover -f /dev/rmt/0m -xov -i /source_directory
To recover files relative to the current working directory:
# cd /destination_directory
# frecover -f /dev/rmt/0m -xXov -i /source_directory
To recover all files under source directory to the present directory (all paths on tape will be ignored - leaving a flat directory structure):
# cd /destination_directory
# frecover -f /dev/rmt/0m -xFov -i /source_directory
If the data stored on tape using dump then use restore. I don't know which option to use but wait and someone will be with you.
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2001 11:10 AM
08-15-2001 11:10 AM
Re: how to display tape contents ?
It would help to know the type of tape (tar,cpio,fbackup,OmniBack ...)
For tar:
tar vtf /dev/rmt0
for cpio:
cpio -ivt < /dev/rmt0
Things also get more complicated if reblocking is needed. More details, please.
man tar,cpio,fbackup for details.
Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2001 11:11 AM
08-15-2001 11:11 AM
Re: how to display tape contents ?
It depends on the command that was used to make the tape in the first place.
Suppose if the tape was made with tar
tar -tv
displays the contents of the tape
tar -xv extracts the file
same way with cpio,fbackup
...BPK...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2001 11:17 AM
08-15-2001 11:17 AM
Re: how to display tape contents ?
fbackup/frecover
# verify backup and read the index file from the tape into a file called /tmp/index
frecover -vf /dev/rmt/0m -I /tmp/index
# list of what is really on the tape
frecover -rNv -f /dev/rmt/0m > /tmp/listing
However, it will cost more time
cpio
# verify what is on the tape
cpio -ictv < /dev/rmt/0m
tar
# verify contents of tape
tar tvf /dev/rmt/0m
However, if you don't know which command backup the tape, you can use
dd if=/dev/rmt/0m count=2 | od -Ad -tu > /tmp/tapelist
see the output.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2001 12:13 PM
08-15-2001 12:13 PM
Re: how to display tape contents ?
You can use "pax" to restore files if they were archived using tar or cpio. pax can read both tar and cpio archives.
However if fbackup was used then you probably need to use "frecover".
Ofcourse its the easiest to restore if you know exactly what "tool" was used to create the archive in the first place.
-HTH
I am Ru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2001 01:36 PM
08-15-2001 01:36 PM
Re: how to display tape contents ?
In Unix, the files readme, README.TXT, READ.ME and ReAdMe.DOC.txt.EXE are all valid filenames and may contain any type of data. By convention, many people will add PC-like extensions but this is not a dependable way to identify a file's contents. So there is no connection between a file's name and the type of information inside the file.
That said, there is a guessing program called: file. If you type:
file myfile.DOC
it will try to guess what type of file it is based on a long list of magic numbers and magic strings. A list of these strings appears in the file (surprise) /etc/magic. There are lots of comments in that file concerning the format.
However, the file must exist so it can't be run to guess the contents of each file on a tape. You would have to restore the tape to a driectory and then type something like:
# cd /var/tmp/newfiles
# file *
and it will identify the files in the directory. You can also guess what the method of backup is for a tape with:
# file /dev/rmt/0m
Works pretty well but as I mentioned, these are guesses based on unique strings.
Bill Hassell, sysadmin