
FUP Commands
File Utility Program (FUP) Reference Manual—523323-014
2-71
DUP[LICATE] Examples
DUP command supports queue files. For example:
-DUP oldqueuefile, newqueuefile [EXT (pri-extent-size, sec-
extent-size)] [SAVEALL]
MAXEXTENTS cannot be increased by DUP. Use FUP ALTER to alter the
MAXEXTENTS of the file.
DUP[LICATE] Examples
To duplicate all the files in the current default subvolume (and in the MYSVOL
subvolume) and place copies of the files (using the same file names) in the
NEWSVOL subvolume:
-DUP (MYSVOL.*, *), NEWSVOL.*
To let the DUP operation on the source file (FILE1) be restarted if the initial DUP
operation does not complete successfully:
-DUP FILE1, FILE2, RESTARTABLE
If the initial DUP operation does not complete successfully, restart the previous
command:
-RESTART
To duplicate a file in a different volume and rename the first alternate-key file (file
0) of the destination file $VOL2.RECD.ALTFILE:
-DUP $VOL1.RECD.DATA, $VOL2.*.* , ALTFILE (0, $VOL2.RECD.&
-ALTFILE)
To duplicate a partitioned file in a different node and rename the secondary
partition of the destination file \TWO.$VOL2.SUB1.PARTFILE:
-DUP $VOL1.SUB1.PARTFILE, \TWO.$VOL1.*.*, &
-PART (1, \TWO.$VOL2)
When you duplicate a partitioned file (in a different node or volume), to duplicate a
secondary partition from a volume that does not exist on the destination node, you
must include the PART option. To duplicate the secondary partitions, use these
commands (on separate command lines):
-DUP $VOL3.SUB1.PARTFILE, \TWO.$VOL2.*.*, PARTONLY
-ALTER \TWO.$VOL1.SUB1.PARTFILE, PART (1, \TWO.$VOL2)
The DUP command duplicates only the secondary partition of PARTFILE (to
$VOL2 on node \TWO) because the PARTONLY option is specified.
ALTER changes the primary partition for the file on \TWO to point to the secondary
partition that was duplicated using PARTONLY in the first command.
To duplicate all files on the current subvolume that end in FILE:
-DUP *FILE, NEWSVOL.*