Examples; Multidrive - HP BACKCOPY Reference Manual

Guardian disk and tape utilities
Table of Contents

Advertisement

Examples

To restore all files on the volume $DATA to the volume $PAYROLL:
1> RESTORE $TAPE1, *.*.*, &
1> &MAP NAMES $DATA.*.* TO $PAYROLL.*.*
The files were backed up from and restored to the same node.
To move the shorthand view $A.SH.VIEW, which refers to the base table $B.VIEW.TAB, to
volume $C:
1> RESTORE $TAPE, $A.SH.VIEW, &
1> &MAP NAMES ($A.SH.VIEW TO $C.SH.VIEW,
Moving the base table with the shorthand view ensures that the view can find and access the
table. It accesses table $C.VIEW.TAB if it exists.
To move the partitions of an SQL file to another volume during a RESTORE process, use a
BACKUP command on node \A in the form:
BACKUP $TAPE, ($B.B.B, $D.B.B) WHERE SQL, AUDITED
where:
\A.$B.B.B is the primary partition of an SQL table that has secondary partitions on
\C.$C.B.B and \D.$D.B.B, and...
\A.$D.B.B is another SQL object unrelated to \A.$B.B.B
These names are stored on tape in the form:
$B.B.B , \C.$C.B.B , \D.$D.B.B , $D.B.B
To restore these SQL objects to different volumes on node \A:
RESTORE $TAPE, *.*.* WHERE SQL, &
&MAP NAMES ($B.*.* TO $F.*.*,
\C.$C.*.* TO $F1.*.*,
\D.$D.*.* TO $F2.*.*,
$D.*.* TO $F3.*.*), AUDITED
The file names for secondary partitions \C.$C.B.B and \D.$D.B.B are stored in remote format, so
that is how they must be identified in the MAP NAMES option. With the MAP NAMES option,
instead of restoring these partitions to their source nodes, they are restored to different volumes
on \A. The MAP NAMES option also directs the files \D.$D.B.B and \A.$D.B.B to different locations
on node \A to avoid a file-name conflict.
Restoration of SQL objects to a volume having more than seven characters (including $) on a
remote system say node \M :
RESTORE $TAPE, *.*.* WHERE SQL, MAP NAMES ($B.*.* TO
$F.*.*,\C.$C.*.* TO $F1.*.*,\D.$D.*.* TO
\M.$NEWVOLUME.*.*,$D.*.* TO $F3.*.*), AUDITED
Restore fails and returns an error :
MAP NAMES. Remote Volume name greater than 7 characters.

MULTIDRIVE

The MULTIDRIVE option lets you use up to four tape drives for an unlabeled-tape RESTORE process.
The sequence of tape-device-names specified in the RESTORE command determines the order
RESTORE processes the tapes.
MULTIDRIVE
140 RESTORE
$B.VIEW.TAB TO $C.VIEW.TAB), AUDITED

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

PakUnpakRestoreDcomDsapBackup ... Show all

Table of Contents