Tuesday, October 10, 2006

Dump Filesystems to Tape via Command Line

Dump all your filesystems to tape via command line. You can insert the information below in a shell script or do an inline script like the one below. This example also rewinds and ejects the tape.

#sh
#for i partition in 0 3 4 6 7; do; /usr/sbin/ufsdump 0uf /dev/rmt/0n /dev/rdsk/c3t0d0$partition; done; mt offline

No comments: