[SunHELP] vxdump

Kovalev, Ivan sunhelp at sunhelp.org
Tue Jan 16 15:08:40 CST 2001


Here is a portion of my script that backs up a system drive using ufsdump.
$ cat mirrall
#!/bin/ksh
# mirror all file systems on sys disk
#
# 03/16/98              IK
 
logfile=/export/home/ibesoper/logs/mirrall.log
#
#==========================================================
date > $logfile
 
echo "dumping
------------------------------------------------------1----root" >> $logfile
newfs /dev/rdsk/c0t1d0s0                                                >>
$logfile 2>&1
df -k | grep /mnt >/dev/null && umount /mnt
mount /dev/dsk/c0t1d0s0 /mnt
(ufsdump 0f  -  /dev/rdsk/c0t0d0s0  |  (cd /mnt; ufsrestore rf -))       >>
$logfile 2>&1
# move vfstab file 
        cp /mnt/etc/vfstab.disk1 /mnt/etc/vfstab
        ###########################################
umount /mnt
echo "***************** copy boot block *********** "    >> $logfile
cd /usr/platform/`uname -i`/lib/fs/ufs
installboot bootblk /dev/rdsk/c0t1d0s0                  >> $logfile 2>&1
date >> $logfile
cd /
 
echo "dumping ------------------------------------------------------2----
/usr/openwin" >> $logfile
newfs /dev/rdsk/c0t1d0s1
>> $logfile 2>&1
mount /dev/dsk/c0t1d0s1 /mnt
(ufsdump 0f  -  /dev/rdsk/c0t0d0s1  |  (cd /mnt; ufsrestore rf -))
>> $logfile 2>&1
cd /
umount /mnt
 
Hope that helps.

-----Original Message-----
From: Naser Ali [mailto:Ali.Naser at irs.gov]
Sent: Tuesday, January 16, 2001 3:11 PM
To: sunhelp at sunhelp.org
Subject: [SunHELP] vxdump



Q. Why one should not use tar for backup of multiterabyte file systems..? 

Has any one ever used "vxdump" in a script..? 
Would really appreciate if some one is willing to share it. 
TIA 





More information about the SunHELP mailing list