* Scott Sanders <[EMAIL PROTECTED]> (Tue, Jul 23, 2002 at 09:47:02AM 
-0600)
> So assuming I know what tape has a level 0 of my root file system, what might
> the commands look like to retstore that file system. I'm running Solaris and
> as I said use tar for the backups. I don't need specifics as I know a lot of
> people on the list are running Linux but the commands in general would be
> great!

On solaris,
booting from the boot CD should be enough (provided the tapedrive did not
require kernel patches ;).

I've sucesfully restored a large section of / (including a new kernel )
using a boot CD and a tapedrive on my amanda server.

step 1:
   boot from boot CD    [D'oh]
step 2:
   figure out what the ID of your tapedrive is
   (my drive used to be /dev/rmt/3 becuase I'd swapped drives around, but
   when booting from CD the drive became /dev/rmt/1 again.
   doing mt -f /dev/rmt/3 status and getting a no such device error message
   back is a nice way to check your bloodpressure ;) )
step 3:
   locate the tape with the last 0 dump from the root partition
   [this assumes you are printing labels with all your tapes, 
    and (optionally) that your tape listign also shows you which tapeimage
    is which dump]
step 4:
   figure out which tapeimage is your 0dump,/   
   [say image 15]
step 5:
   position tape to that image
   mt -f /dev/rmt/1n fsf 15
                   ^
                   +-----> note the n, you want the no rewind device
step 6:
   figure out how to restore the tape.
   Amanda kindly writes this information in block 1 of the tapeimage
   dd if=/dev/rmt/1 bs=32k count=1

   which will tell you something like (example snatched from 
                http://www.backupcentral.com/amanda-24.html)

   AMANDA: FILE 19981206 pete.cc.purdue.edu / lev 1  
   comp N program /usr/sbin/ufsdump 


   To restore, position the tape at start of file and run: 


   # dd if=$TAPE bs=32k skip=1 | /usr/sbin/ufsrestore -f... - 

step 7:
   rewind tape and reposition:
   mt -f /dev/rmt/1 rewind; mt -f /dev/rmt/1n fsf 15
   dd if=/dev/rmt/1 bs=32k skip=1 | /usr/sbin/ufsrestore -f -


Kind regards,
 --
Gerhard den Hollander                           Phone :+31-10.280.1515
Global IT Support manager                       Direct:+31-10.280.1539 
Jason Geosystems BV                             Fax   :+31-10.280.1511 
              (When calling please note: we are in GMT+1)
[EMAIL PROTECTED]                          POBox 1573
visit us at http://www.jasongeo.com                 3000 BN Rotterdam  
JASON.......#1 in Reservoir Characterization        The Netherlands

      This e-mail and any attachment is/are intended solely for the named
  addressee(s) and may contain information that is confidential and privileged.
       If you are not the intended recipient, we request that you do not
         disseminate, forward, distribute or copy this e-mail message.
      If you have received this e-mail message in error, please notify us
           immediately by telephone and destroy the original message.

Reply via email to