Performing common file operations, Duplicating files – HP NonStop G-Series User Manual
Page 113
![background image](/manuals/396922/113/background.png)
Using FUP for Basic File Management
Guardian User’s Guide — 425266-001
7- 13
Performing Common File Operations
Performing Common File Operations
This subsection describes how to perform basic file management tasks: duplicating,
renaming, changing security, and deleting files.
Duplicating Files
You can duplicate a single file or a set of files with the FUP DUPLICATE command.
To duplicate a single file, enter DUPLICATE (or simply DUP) followed by the name of
the file to be copied, a comma, and the name of the new file.
For example, this command duplicates the file BAKE in your current default
subvolume, names the new file BAKE also, and places the copy in the subvolume
$PISMO.CLAM:
If the file $PISMO.CLAM.BAKE already exists, FUP does not execute the command
and responds with an error message. To overwrite an existing file with DUP, you must
include the PURGE option:
To duplicate more than one file with a single command, enter DUP followed by a file set
or file-set list, a comma, and a destination.
To specify a destination:
1. Include a system or volume name if either one differs from the current default value.
2. For the subvolume name, specify either of:
•
A single subvolume name, for all the new files to reside in that subvolume.
•
An asterisk (*) in place of the subvolume name (to specify that the subvolume
name of each new file be the same as the subvolume name of the file from
which it was copied).
3. For the file name, specify either of these:
•
The new file names in order.
•
An asterisk (*) in place of one or more file names if you want the names of the
new files to be the same as the old files.
For example, if you have these files:
-DUP BAKE, $PISMO.CLAM.BAKE
-DUP BAKE, $PISMO.CLAM.BAKE, PURGE
-FILES $ALPHA.SOUP
$ALPHA.SOUP
A B
-FILES $COUNT.DOWN
$COUNT.DOWN
BLASTOFF