Saturday, October 21, 2006

Dump File System and Suggested Backup Schedule

How to dump (archive) a file system to tape?

To dump the entire root filesystem -- level 0 (full dump):

ufsdump 0cfu /dev/rmt/0 /dev/rdsk/c0t0d0s0

If you want to dump an all the file systems:

Use Bourne Shell at the prompt

#sh
#for i in 0 1 3 4 6 7 (These numbers represent the partitions you have configured as file systems)
#do
#ufsdump 0cfu /dev/rmt/0 /dev/rdsk/c0t0d0s$i
#echo $i done
#done

Suggested and a common backup schedule:
Sun Mon Tue Wed Thu Fri
Week 1: Full 5 5 5 5 3
Week 2: 5 5 5 5 3
Week 3: 5 5 5 5 3
Week 4: 5 5 5 5 3

For the incremental backups:

Use Bourne Shell at the prompt.

#sh
#for i in 0 1 3 4 6 7 (These numbers represent the partitions you have configured as file systems)
#do
#ufsdump 5cfu /dev/rmt/0 /dev/rdsk/c0t0d0s$i (If Friday's tape, use 3 instead of 5)
#echo $i done
#done

No comments: