07-13-04 10:59 PM
FreeDiver wrote:
> Hi,
>
> We are running Sun Solaris 8 OS.
>
> Can "ufsdump" used to backup muliple file systems in one tape ?
>
> If yes, what commands do I use during "ufsdump" and also restoring
> "ufsrestore" ??
Bill,
A couple of people have already told you you can do it, but I thought
that a small example might help.
For example purposes, lets say I have a Ultra 450 with a disk that
is partitioned for "/", "/usr", "/var", and "/local". The disk is at
"c0t1d0" and is partitions 0, 6, 3, and 5, respectively.
I am also assuming that the data in these partitions will fit on one
tape. This can be strung across multiple tapes, but that complicates
things.
To create the tape I would use the "mt" command and the "ufsdump"
command. The "mt" command is used to manipulate the tape and force
a rewind. The "ufsdump" commands specify the "no-rewind" device for
the tape unit so that they will dump sequentially.
> mt -f /dev/rmt/0m rewind
> ufsdump 0f /dev/rmt/0mn /dev/rdsk/c0t1d0s0
> ufsdump 0f /dev/rmt/0mn /dev/rdsk/c0t1d0s6
> ufsdump 0f /dev/rmt/0mn /dev/rdsk/c0t1d0s3
> ufsdump 0f /dev/rmt/0mn /dev/rdsk/c0t1d0s5
To then recover these dumps with the "ufsrestore" command you would
again use the "mt" command. This time to position yourself to the
correct position on the tape. For example, to recover the data from
the "/local" partition, /dev/rdsk/c0t1d0s5, you might use the following
commands:
> cd /tmp_local
> mt -f /dev/rmt/0m rewind
> mt -f /dev/rmt/0mn fsr 4
> ufsrestore xf /dev/rmt/0mn
As with everything, read the man page for "mt", "ufsdump", "ufsrestore",
and "installboot".
--
Martin E. Meserve
k7mem@myrealbox.com
http://www.k7mem.150m.com
[ Post a follow-up to this message ]
|