Restoring Existing Disk Files; Restoring Using Name Mapping - HP BACKCOPY Reference Manual

Guardian disk and tape utilities
Table of Contents

Advertisement

To include the MAP NAMES option in the previous example and restore the files to another
volume:
1> RESTORE $TAPE, ($A.*.*, $B.*.*),&
1> &MAP NAMES ($A.*.* TO $C.*.*, $B.*.* TO $D.*.*),&
1> &CATALOGS ($C.CAT FOR $C.*, $D.CAT for $D.*),&
1> &LISTALL, AUDITED
This command produces these results:
The tape files are copied to disk if they have the volume name $A or $B. All partitions,
protection views, and indexes associated with files that have the volume name $A or $B
are restored.
The newly generated disk files are all given the volume name $C or $D. Their subvolume
names and file IDs are the same as the tape files from which they were generated.
The newly generated SQL files are described in catalog $C.CAT and $D.CAT.
Existing disk files on volumes $A and $B are preserved because the newly generated
disk files all have the volume name $C or $D.
An output listing is displayed on the terminal.
To restore a partitioned file that was backed up on system \A to system \B and registers the
file in catalog $B.CAT:
1> RESTORE $TAPE, \A.$A.*.*
1> MAP NAMES (\A.$A.*.* TO \B.$B.* *, &
1> $A.*.*
1> CATALOGS ($B.CAT FOR $B.*.*) &
1> AUDITED, LISTALL

Restoring Existing Disk Files

When restoring files that already exist on disk, if the name of a file to be restored has the same
name as a file that exists on disk, the action taken by RESTORE depends on the file type and the
options that you specify in your RESTORE command:
If you specify the KEEP option, the file that exists on disk is preserved and the file on tape is
not restored.
If you specify the PARTONLY ON option, only the existing disk files with the same names as
the files explicitly named in the restore-files parameter of the RESTORE command are
purged. Specifying the PARTONLY OFF option purges existing disk files with the same names
as the files on tape, and all objects logically related to the existing disk files (such as secondary
partitions and indexes).
If the existing disk file is a primary partition and the PARTONLY option is ON, only that
partition is purged. If PARTONLY is OFF, the entire partitioned file is purged.

Restoring Using Name Mapping

You can use the MAP NAMES and CATALOG(S) options to:
Move interrelated files such as SQL objects from one volume or node to another
Within limits, transfer files backed up on one network to another
To understand how the MAP NAMES option works when you restore files to a different node or
network, you must know how BACKUP and RESTORE handle file names.
When you restore these multinode files, RESTORE searches the network for a node that matches
the backup node information. If you are restoring to the node on which the files were backed up
or to another node on the same network, you need not be concerned about file names or
TO $B.*.*),&
RESTORE Guidelines and Examples
171

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

PakUnpakRestoreDcomDsapBackup ... Show all

Table of Contents