The mt command, magnetic tape control allows you to send commands to a magnetic tape. Next you’ll find some basic usage of this utility.
Print status information:
mt -f /dev/rmt/0n status
Rewind the tape:
mt -f /dev/rmt/0n rewind
Erase the entire tape. Be careful with this.
mt -f /dev/rmt/0n erase
Now suppose you want to back a directory called /var/backup:
tar -cvf /dev/rmt/0n /var/backup
And type the following to see its content:
tar tvf /dev/rmt/0n
Now dump a disk slice:
ufsdump 0cvf /dev/rmt/0 /dev/rdsk/c0t0d0s0
or a directory…
ufsdump 0cvf /dev/rmt/0 /var/backup
Now restore a dump:
ufsrestore rvf /dev/rmt/0
References: