beautypg.com

File and catalog name mapping using mapnames, Changing subvolume and file name mapping – HP NonStop G-Series User Manual

Page 45

background image

One-time Synchronization

HP AutoSYNC User’s Guide522580-015

3-9

Partitioned Files and Tables

Changing Subvolume and File Name Mapping

Non-partitioned file

1. To synchronize the single partitioned file $DATA01.DB.FILE to

subvolume and file BACKDB.BACKFILE, use the following command:

Partitioned file

To synchronize the partitioned file $DATA*.DB.PARTFILE to different subvolume and
file names $DATA*.BACKDB.BACKFILE, the command must specify the primary
partition mapping,

and the mapnames file must contain an entry for each secondary partition, as follows:

File and Catalog Name Mapping using MAPNAMES

The

MAPNAMES mapnames-file

option mentioned throughout the preceding

paragraphs is used to specify the mapping of a source file set to a destination file set
and for catalog name mapping.

The mapnames-file is an edit or entry-sequenced file, located on the destination
system.

File name mapping

The mapnames-file entries are similar to, but not exactly the same as, the MAP
NAMES option of RESTORE. Each line of the MAPNAMES file contains a single
mapping of the form:

The file name can be partially qualified; AutoSYNC replaces the missing portion of the
name with the wild card asterisk(*). For example, the following entries:

SYNC $DATA01.DB.FILE TO $DATA01.BACKDB.BACKFILE,...;

SYNC $DATA01.DB.PARTFILE TO $DATA01.BACKDB.BACKFILE, MAPNAMES mapnames...;

$DATA02.DB.PARTFILE TO $DATA02.BACKDP.BACKFILE

$DATA03.DB.PARTFILE TO $DATA03.BACKDP.BACKFILE

...so on...

source-file-pattern TO destination-file-pattern

$DATA TO $BACK
\NEWYORK.$DATA*.DB TO $BACK.BACKUPDB
$DATA*.DB.PARTFILE TO \TOKYO.*

This manual is related to the following products: