AutoSYNC Software User's Guide (Update 18)
One-time Synchronization
HP AutoSYNC User’s Guide—522580-019
3-11
Partitioned Files and Tables
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:
are equivalent to:
By default, name mapping is performed by RESTORE with the assistance of the 
default MAP NAMES clause provided by AutoSYNC. The default clause is:
which says that everything in the source file set will be mapped to the same destination 
file set. Therefore, if you synchronize files and tables to the same location on the 
destination, you do not need to supply a mapnames-file.
The mapnames-file is used by AutoSYNC for RENAMEOPEN and recovery processing 
and by RESTORE to map file names such as partitions that are not in the same 
location on the destination or SQL indexes and protection view names that are not in 
the same location as the base table, as described in the paragraphs above in this 
chapter.
The mapnames-file is not used by AutoSYNC to select the files to synchronize, which 
means that Autosync does not use the mapnames entries to map the basic source and 
destination file sets. For example, to synchronize volumes $data1.*.* TO 
\dest.$back1.*.* and $data2.*.*.* to \dest.$back2.*.*, the following is INCORRECT:
The correct way is to synchronize each source volume as follows:
source-file-pattern TO destination-file-pattern
$DATA TO $BACK
\NEWYORK.$DATA*.DB TO $BACK.BACKUPDB
$DATA*.DB.PARTFILE TO \TOKYO.*
\SOURCE.$DATA.*.* TO \DEST.$BACK.*.*
\NEWYORK.$DATA*.DB.* TO \DEST.$BACK.BACKUPDB.*
\SOURCE.$DATA*.DB.PARTFILE TO \TOKYO.*.*.*
MAP NAMES ( source-file-set TO dest-file-set,
source-system.*.*.* TO dest-file-set )
SYNC $data*.*.* TO \dest.*.*.*,MAPNAMES mapdata...;
where mapdata contains entries:
$DATA1 TO $BACK1
$DATA2 TO $BACK2 
SYNC $data1.*.* TO \dest.$back1.*.*...; 
SYNC $data2.*.* TO \dest.$back2.*.*...;










