- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: getting data off tape
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-02-2003 08:29 AM
10-02-2003 08:29 AM
When I correct it to xv, it just returns after a few seconds. Is my data on tape lost? Is there some way to retrieve this data? I failed to make 2 copies of the backup tape.
Can I dd the data off?
thanx,
keith
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2003 09:08 AM
10-02-2003 09:08 AM
Re: getting data off tape
tar cv
then
tar cv
The only thing thats going to be on that tape is the last archive, /sbin
If you did this:
tar cvf /tmp/net.tar /etc/*
tar cvf /tmp/sbin.tar /sbin/*
and then tar cv
both files would be on the tape.
or:
tar cv
then
tar rv
Both archives would be on the tape.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2003 09:18 AM
10-02-2003 09:18 AM
Solutiondo the following
#mt -f /dev/st0 rewind
#tar -tvf /dev/st0
this should tell you what you have on tape
If you got the error 'tar: filename: No such file or directory' my guess is you stil have your info, but I am confused because, if you use a tape your command should have been something like
#mt -f /dev/st0
#tar -xvf /dev/st0
this would extract all the file on the tape
#tar -xvf /dev/st0 /somefile/blabla
this would extract /somefile/blabla if it exists.
<< but put tar cv filename instead of tar xv filename
sound like your mixing filename (like example.tar) with device name (like /dev/st0)
but, then it could just be me understanding it wrongly ?
Tell us if this helps, and perhaps the exact sequence of input,output and error, if you need futher assistance.
J-P
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2003 11:24 AM
10-02-2003 11:24 AM
Re: getting data off tape
You could try recovering it using 'dd', but that will get messy, fast. Depends on how desperate you are to get the data.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2003 02:44 PM
10-02-2003 02:44 PM
Re: getting data off tape
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2003 05:54 PM
10-02-2003 05:54 PM
Re: getting data off tape
SEP's explanation above on how to get multiple "tar" sessions on a tape is an extremely useful method but there is another method which people often forget and is sometimes more appropriate.
tar to tape and then use "mt" to position the tape head to the end of your backup using the "fsf" argument and then do another tar backup, rinse and repeat. You can then pick which tar archive to restore by using the same command several times (or with a count) to get to the particualr archive you want. Then "tar xv"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2003 02:36 AM
10-03-2003 02:36 AM
Re: getting data off tape
The file command only works on files.
I am desparate to get the data off. It's several years of processed data. How should I use the dd command?
thanx,
keith
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2003 02:51 AM
10-03-2003 02:51 AM
Re: getting data off tape
If you did "tar cv" with one filename and you got the a "No such file" error, then the tar cv did not break your backup.
However, assume for a moment it did. You MIGHT be able to retrieve data off the tape despite the problem of "tar xv" not finding anything by moving the tape head over the end of the suspected small tar archive at the front of the tape. Use "mt -f device fsf 1". You must use a no rewind device! Try your tar xv again. Failing this, instead of using tar, try and get the data off with "dd". If it is a tar of tar files and you are desperate enough, you might be able to edit the result of dd to get individual tar archives out of it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2003 03:12 AM
10-03-2003 03:12 AM
Re: getting data off tape
It would be helpfull if you could give us the
<
One more thing, if the tar archive was created with absolute paths it will recreate the files
on disk with exactly this path, i.e. anything you have there right now with the same name will be overwritten. So maybe a tar tv would be a good idea first.
Greetings, Martin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2003 01:16 PM
10-05-2003 01:16 PM