HP Q1581A HP DDS/DAT drives UNIX, Linux and OpenVMS configuration guide (DW049 - Page 38

Example, Note the prefix - specifications

Page 38 highlights

NOTE: Make sure you prefix the file name with '.' when you back it up to tape. If you do not, the restore operation in step 3 will overwrite the original copy on disk. 3. Read the file back from tape: % cd /tmp % tar xvf The 'x' option to tar here means "extract from the archive". Use the same value for the argument as in step 2. 4. Compare the original with this retrieved file: % cmp /tmp/ This step compares the retrieved file and the original file byte by byte. If they are the same, there should be no output, and this verifies that the installation is correct. The arguments are as follows: The name of the original file, prefixed with '/'. Example: /boot/vmlinuz The name of the file retrieved from the archive. Example: boot/vmlinuz Example Suppose you are verifying the installation of an HP DDS-format tape drive on a Linux system. The procedure would be as follows. See "System-Specific Arguments" below for the choice of and arguments: 1. Change directory to root: % cd / 2. Back up /boot/vmlinuz to tape: % tar cvf /dev/st0 ./boot/vmlinuz 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/st0 5. Compare the original with the restored version: % cmp /boot/vmlinuz /tmp/boot/vmlinuz Note that the original filename is not prefixed with '.'. 38 Verifying the installation

  • 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
  • 41
  • 42

Verifying the installation
38
NOTE:
Make sure you prefix the file name with ‘
.
’ when you back it up to tape. If you do not, the
restore operation in step 3 will overwrite the original copy on disk.
3.
Read the file back from tape:
% cd /tmp
% tar xvf <archive name>
The ‘
x
’ option to
tar
here means “extract from the archive”.
Use the same value for the
<archive name
> argument as in step 2.
4.
Compare the original with this retrieved file:
% cmp <original file> /tmp/<retrieved file>
This step compares the retrieved file and the original file byte by byte. If they are the same, there
should be no output, and this verifies that the installation is correct. The arguments are as
follows:
Example
Suppose you are verifying the installation of an HP DDS-format tape drive on a Linux system. The
procedure would be as follows. See “System-Specific Arguments” below for the choice of
<archive
name>
and
<file>
arguments:
1.
Change directory to root:
% cd /
2.
Back up
/boot/vmlinuz
to tape:
% tar cvf /dev/st0 ./boot/vmlinuz
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/st0
5.
Compare the original with the restored version:
% cmp /boot/vmlinuz /tmp/boot/vmlinuz
Note that the original filename is
not
prefixed with ‘
.
’.
<original file>
The name of the original file, prefixed with ‘
/
’.
Example:
/boot/vmlinuz
<retrieved file>
The name of the file retrieved from the archive.
Example:
boot/vmlinuz