HP C7401A HP Ultrium Drives Technical Reference Manual V5.0 UNIX Configuration - Page 33

Example, Extract the file from the tape

Page 33 highlights

Verifying the Installation Example: Suppose you are verifying the installation of an HP Ultrium tape drive on an HP-UX 10.X system. The procedure would be as follows.: 1 Change directory to root: % cd / 2 Back up /stand/vmunix to tape: % tar cvf /dev/rmt/0m ./stand/vmunix Note the prefix of '.' to the filename. 3 Change to the temporary directory: % cd /tmp 4 Extract the file from the tape: % tar xvf /dev/rmt/0m 5 Compare the original with the restored version: % cmp /stand/vmunix /tmp/stand/vmunix Note that the original filename is not prefixed with '.'. Verifying the Installation 33

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40

Verifying the Installation
33
Verifying the Installation
Example:
Suppose you are verifying the installation of an HP Ultrium tape drive on an
HP-UX 10.X system. The procedure would be as follows.:
1
Change directory to root:
% cd /
2
Back up
/stand/vmunix
to tape:
% tar cvf /dev/rmt/0m ./stand/vmunix
Note the prefix of ‘
.
’ to the filename.
3
Change to the temporary directory:
% cd /tmp
4
Extract the file from the tape:
% tar xvf /dev/rmt/0m
5
Compare the original with the restored version:
% cmp /stand/vmunix /tmp/stand/vmunix
Note that the original filename is
not
prefixed with ‘
.
’.