16. Backup Procedures with Tapes
Some considerations when planning backup strategy
Tapes (24 labels to label 1 tape)
Different ways (/dev/rmt/___)
To get the system to recognize a new peripheral device boot r (reconfiguration)
mt command stands for magnetic tape. Example - mt f /dev/rmt/0n fsf 5 this command will not rewind (the 0n does this) and will fast forward (fsf) to the 5th file. In Solaris 2.6 the 0n is default.
mt commands
ufsdump, ufsrestore, and tar have similar syntax.
ufsdump (Unix file system dump) syntax: ufsdump [dumplevel] [where
to backup to (device)], i.e. ufsdump 0 /dev/dsk/c0t0d0s0 or ufsdump [dump
level] f (f = specify destination) [destination] [what to copy]
i.e. ufsdump 0f /dev/rmt/0n /dev/dsk/c0t0d0s0 or ufsdump 0f [host
name:destinaion] i.e. ufsdump of mycomputer:/dev/rmt0n (before n: 1st drive
would be 0, 2nd drive would be 1, etc.) This would remote backup to backup server
(Note: host must have /.rhost with the nodes name that is saving to
it.)
To keep a table of contents for usfdumps, make a file called /var/dump/[date].home. With ufsdump use the a argument to create the table, i.e. ufsdump [dump level] a (to create level) f (to specify destination) [a variable information] [f variable information]. It would look like this: ufsdump 0af /var/dump/980414.home /dev/rmt/0n /dev/dsk/cot1d0s0.
Other ufsdump options:
ufs restore [a to read from archive, f to give path
from where to read, v for verbose mode, r for restore,
x for extract and file, t for table of contents, i for
interactive] [ archive file] [tape device]
(Note: do not put disk device on here, it will restore to present
directory)
Steps to restoring:
If you are ufsrestore, i of ufsrestore if /dev/rmt0n you will get ufsrestore>, then you can use cd, ls, add, delete, extract, and quit.
Go to Chapter 15
Go to Index
Go to Chapter 17