Tuesday, March 4, 2008

Dump all the file system with bourne shell

If want to dump an all the file system, we can use bourne shell at the prompt :

# sh
# for i in 0 1 3 4 5 6 (number partition)
# do
# ufsdump 0ucf 192.168.0.2:/dev/rmt/0n /dev/md/rdsk/d$i (mirror)
# echo $i done
# done
Note :
192.168.0.2 : Place of tape drive attached