Backup & Misc
Jim Jagielski
jim at jagmac2.gsfc.nasa.gov
Fri Oct 5 20:44:00 AEST 1990
In article <1990Oct5.035047.32209 at uokmax.ecn.uoknor.edu> rmtodd at uokmax.ecn.uoknor.edu (Richard Michael Todd) writes:
>MATLEVAN at EKU.BITNET (Jerry LeVan) writes:
>>Is the following possible?
>> use dump.bsd to /dev/rmt/tc to copy a sysv file system.
>> reformat the disk to a ufs.
>> use restore to recover the files from the tape (without
>> remaking the partition back into a sysv filesystem.
>
> Well, modulo the difference that I did it with /dev/rmt/teac4n (using Tony
>Cooper's beta TEAC tape driver and a TEAC 150M tape drive), that's exactly
>what I did when upgrading my /u filesystem to UFS. No problems.
>
As I recall, dump.bsd and restore (when used in the "full" mode) also copy
the SuperBlock information, so if a restore -r (or whatever the flag is, I
don't use dump/restore) is done, SuperBlock info is also restored. One of the
upshots of this is that your new filesystem must be the same size as the old
one.
One can use cpio instead (assuming all will fit on 1 tape):
$ cd /usr2
$ find . -print | cpio -ov | tcb > /dev/rmt/tc1
$ [now do newfs stuff to create BSD file system]
$ [dp and pname too if required ]
$ [and mount it of course where it was before: assume /usr2]
$ cd /usr2
$ tcb < /dev/rmt/tc1 | cpio -idmuv
(the above should be run as root to maintain old permissions)
--
=======================================================================
#include <std/disclaimer.h>
=:^)
Jim Jagielski NASA/GSFC, Code 711.1
jim at jagmac2.gsfc.nasa.gov Greenbelt, MD 20771
"Kilimanjaro is a pretty tricky climb. Most of it's up, until you reach
the very, very top, and then it tends to slope away rather sharply."
More information about the Comp.unix.aux
mailing list