The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
steps to ufsrestore vr76413 SUN Solaris 1 11-14-2006 10:55 PM
ufsrestore stops spacewalker SUN Solaris 1 04-28-2006 03:46 AM
ufsrestore? ECBROWN SUN Solaris 3 03-15-2006 09:05 AM
ufsrestore problem dredarrow SUN Solaris 5 02-07-2006 06:25 AM
ufsrestore S26+ SUN Solaris 1 03-07-2005 12:17 PM

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 06-09-2003
Registered User
 

Join Date: Dec 2001
Location: Ireland
Posts: 20
Question ufsrestore -i

Hi there,

I have a problem at the moment trying to restore a directory from a Super DLT tape with about 3 weeks worth of backups on it. I need to be able to get the last backup performed on this tape but using ufsrestore -i it only restores the first backup which is no good to me. There is no archive file associated with this tape. I am using ufsrestore -i to restore the files. My question is would there be any way I could specify the backup date I need from the tape using ufsrestore (or any other command) without the use of an archive file? The system is running Solaris version 8. Thanks for your help.
Forum Sponsor
  #2  
Old 06-09-2003
RTM's Avatar
RTM RTM is offline
Hog Hunter
 
Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
You can use the mt command (check the man page) and the fsf option to "file skip forward" to get to the last backup.

Make sure your device is one with the norewind

# /usr/bin/mt -f /dev/rmt/0n fsf 2
This would skip the first two ufsdumps and go to the begining of the third. If you don't know how many dumps are on it, then you will have to do this and start counting. It may take you awhile and you will have to find the number and then rewind and do a fsf to the number you found (since you would go beyond the end of the one you wanted while searching for how many are actually on the tape).
  #3  
Old 06-09-2003
Registered User
 

Join Date: Dec 2001
Location: Ireland
Posts: 20
That's great RTM. I will get to try that tomorrow and let you know how I got on. Your help is much appreciated.
  #4  
Old 06-09-2003
flim flam flamma jamma
 

Join Date: May 2001
Location: Chicago IL, USA
Posts: 1,006
ufsrestore -ivfs /dev/your/tape/drive # (# here starts at 1 not 0)

the # is the location of the data on the tape. so if you run lets say 5 backups on 1 non rewinding tape. then you would substitute the # with a 5.
  #5  
Old 06-10-2003
Registered User
 

Join Date: Dec 2001
Location: Ireland
Posts: 20
Thanks RTM/Optimus_P for your help. I tried /usr/bin/mt -f /dev/rmt/0n fsf # and it worked. I'll keep both methods handy though. Thanks again.
Google The UNIX and Linux Forums
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 08:00 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0