Summary<About the backup>

From: <szhaichi_at_public.szptt.net.cn>
Date: Thu, 05 Jun 1997 14:19:53 +0800

Hi,everybody:

   My original question was:
>How can I backup two different Advfs partition on one tape,what
> command should I use,and how about the restore procedure?
> My system is AlphaServer 2100 4/275,operating system is Digital UNIX
> 3.2D,the tape driver is TLZ07.


   Thanks to everyone that gave me the answer of this question.

     Gernot Salzer <salzer_at_logic.tuwien.ac.at>
     Niall Madden <n.madden_at_ucc.ie>
     "Nagaraja, Raja" <Raja.Nagaraja_at_actew.com.au>
     "system PRIVILEGED account- John F. Marten" <root_at_tigger.oslc.org>
     "Robert L. McMillin" <rlm_at_syseca-us.com>
      Paul Kitwin <PAUKIT_at_HBSI.COM>
      BigRedDog <ckrieger_at_latrade.com>
      Kevin White <kwhite_at_popeye.dmcs.dnd.ca>
      Santosh Krishnan x2815 <santosh_at_heplinux1.uta.edu>
      Richard Eisenman <eisenman_at_tricity.wsu.edu>
   The message from: Hickl Attila <giaahi_at_gia.ch>
       
Hi Chi Hai

we use vdump to backup our advfs-partitions.

We use a shell script which will be started by the cron process:

- testing the tape drive, if there is a tape inserted, and if it's
writable.

- dumping the partitions to tape (Fullbackup)

   vdump -0uf /dev/nrmtxh /dev/rzxx >> log_file
   vdump -0uf /dev/nrmtxh /dev/rzxx >> log_file
   vdump -0uf /dev/nrmtxh /dev/rzxx >> log_file
   ...
   ...
   vdump -0uf /dev/rmtxh /dev/rzxx >> log_file

- mail the log_file to the sys_admin

!!! Very important !!!

   use "nrmt0h" to dump your filesystems, the "n"rmt0h means, no rewind,
so the tape drive, when the vdump finished to dump a partition, doesn't
rewind the tape to beginning and the next partition will be appended
after the first, second and so on. After the last partition you should
use /dev/rmt0h, it will rewind your tape to the start.

Think about, that when the crontab starts your script, that every log
information should be written to a log_file.


    The message from : "Randy Rodgers" <rrodgers_at_fwi.com>
    
Chi,

There are a couple ways to do this.

1. Use the "-N" option for "vdump" for the 1st fileset. This option
does
not rewind the tape.

2. Use the "/dev/nrmtxx" device with the "-f" option for "vdump". This
is
the norewind tape device. You can then use "mt -f /dev/nrmtxx" to
rewind
the tape after the backup is complete.



    The message from: alan_at_nabeth.cxo.dec.com (Alan Rollow - Dr. File
System's Home for Wayward Inodes.)
   
Use the norewind tape device.

vdump 0f /dev/nrmt{whatever}h /file-system-1
vdump 0f /dev/nrmt{whatever}h /file-system-2
mt -f /dev/rmt{whatever}h rew

For the restore use vrestore. If you're restoring sequentially
through the backups, simply use the norewind tape device again.
The tape will be left at the end of the current archive instead
of the beginning of the next so you have skip over the file
mark.

vrestore rf /dev/nrmt{whatever}h
mt -f /dev/nrmt{whatever}h fsf 1
vrestore rf /dev/nrmt{whatever}h


      The message from: "Lewis L. Lasser" <lewis_at_dmi.stevens-tech.edu>

I backup many ufs and Advfs filesystems using vdump and vrestore.
To backup I use a script similar to

        dumpopt="-q -u -N -f /dev/nrmt0h"

        vdump -$lev $dumpopt /
        vdump -$lev $dumpopt /usr
        vdump -$lev $dumpopt /usr/local

        etc ...

  where lev is a shell variable that I set to various values (0,1,2,...)
  depending on two things: (1) the type of backup (daily, weekly,
monthly,
  yearly, ...) and (2) the filesystem being backed up.

To restore I usr "vrestore -i".
First load the tape, then position, if necessary, with

        mt -f /dev/nrmt0h fsf n

  where n is an integer indicating which set to locate.
Some examples (assuming the vdump order is /,/usr,/usr/local)

        to restore from /

                insert tape
                vrestore -i

        to restore from /usr

                insert tape
                mt -f /dev/nrmt0h fsf 1
                vrestore -i

        to restore from /usr/local

                insert tape
                mt -f /dev/nrmt0h fsf 2
                vrestore -i

        etc ...

I have used this technique for years without problems.
The vdump can even occur if some users are using the filesystem, i.e. I
  do not umount the filesystems before backing up.


        The message from: mortimer_at_physics.uq.edu.au
    

You can put more than one image on a tape by using the no rewind
device. Just add n to front of the device name - for example:
/dev/nrmt0h or /dev/nrmt0a.

If you remove a tape and then want to make other backups to the
same tape you can skip over the images already on the tape using
the 'mt fsf' command. By default it will skip one image but
you can give a number to skip - for example `mt fsf 3' will skip
3 images and you can then place a fourth image on the tape.

For restoring you just skip as many images as needed to get to
the one you want using `mt fsf _n_' where you replace _n_ with the
number of images to skip. Then you use vrestore to recover
files from the next image on the tape.

If you want to restore more than one image in succession you can
use the norewind device.

For more information try `man mt'


   The message from: "H. Blakely Williford" <blakew_at_fuller.com>

The command to back up with out rewinding the tape is
   /sbin/vdump -0uN -f /dev/rmt0h /

The -N switch means norewind. The last backup you do on the tape should
be done with the -N left out. This will let the tape rewind.
   /sbin/vdump -0u -f /dev/rmt0h /usr/users

now when you wish to restore a save set from a backup that is the fourth
backup on the tape you will need to fast forward the tape to that
backup. This is done with the following command.
   mt fsf 4

play with all this frist before you put it in a trusted script.



    regards,



                                                   Chi Hai
Received on Thu Jun 05 1997 - 08:38:08 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:36 NZDT