Quote:
Originally posted by guest100
Here is the backup script:
mt -f /dev/rmt/0cn rewind
ufsdump 0uf /dev/rmt/0cn /dev/dsk/c0t0d0s0
ufsdump 0uf /dev/rmt/0cn /dev/dsk/c0t0d0s3
The trailing n in /dev/rmt/0cn means "no rewind". This means that there is no automativ rewind of the tape when the file is closed. So your first statement does an explicit rewind to get the tape at the beginning.
Then the next command backs up root. When it finishes, the tape is left positioned after the root backup.
Then you backup the /usr filesystem. And so on.
So you have several backups on one tape. When you put the tape on and do a ufsrestore, you see only the first backup.
Want to see the second backup? Do:
mt -f /dev/rmt/0cn fsf 1
first. This will skip the first backup and leave you positioned at the second.