Friday, November 24, 2006

Sun OS dump

請依 file system layout 為準

root@acty # more dumpsys.sh
mt -f /dev/rmt/0c rewind
LOG=/export/home/root/log/dumpsys.log
date > $LOG 2>&1
ufsdump 0uf /dev/rmt/0cn /dev/md/rdsk/d0 >> $LOG 2>&1 #/
ufsdump 0uf /dev/rmt/0cn /dev/md/rdsk/d6 >> $LOG 2>&1 #/usr
ufsdump 0uf /dev/rmt/0cn /dev/md/rdsk/d7 >> $LOG 2>&1 #/export/home
date >> $LOG 2>&1

No comments:

Post a Comment