First identify if your system has a tape drive in place.
ioscan -fnC tape
or
ioscan -kfnC tape
Say the tape device is /dev/rmt/0m and has the no-rewind device file for the same tape as /dev/rmt/0mn
To make the Tape archive of the system use the no rewind device that is /dev/rmt/0mn.
Load the tape media in the tape device.
Confirm that the media is loaded and in case needed rewind the tape to the home position.
mt -t /dev/rmt/0mn status
To rewind to the original tape home position you can do
mt -t /dev/rmt/0mn rewind
or
in short
mt -t /dev/rmt/0mn rew
Confirm the tape is positioned
mt -t /dev/rmt/0mn status
To make a Tape archive backup you can use the command as
make_tape_recovery -Av
This automatically takes backup to the default tape drive configured on the system.
make_tape_recovery -v -a /dev/rmt/0mn -x include_entire=vg00 -x exclude=/var/adm/crash
The above command takes backup of the system into tape drive /dev/rmt/0mn and includes entire VG vg00 (which is included in Ignite backup by default) in -v (verbose mode) and excludes the Directory /var/adm/crash.
To include the other VGs apart from the rootvg vg00, the command becomes like this.
make_tape_recovery -v -a /dev/rmt/0mn -x inc_entire=vg00 -x inc_entire=vg02 -x exclude=/var/adm/crash
The above command additionally takes the vg02 data also in the Ignite tape backup.
No comments:
Post a Comment