Guardian User's Guide
Using FUP for Advanced File Management
Guardian User’s Guide—425266-001
8-17
Copying Files to a Backup Volume
•
Use the FUP ALTER command to change the file label of the primary-key file to 
reflect the change you made to the alternate-key file. 
Renaming a File and Its Alternate-Key File
In this example, assume that you want to rename a structured file named 
$VOL1.SVOL.PRIFILE to the new name OLDSVOL.PRIFILE. The file has one 
alternate-key file named $VOL1.SVOL.AFILE, which you want to rename 
OLDSVOL.AFILE. 
To change the names of the two files, enter:  
To alter the file label of PRIFILE so that it includes the new name of the alternate-key 
file, enter:  
Moving a File With Alternate Keys to a New Volume
This example uses a structured file named $VOL1.SVOL.PRIFILE. It has one alternate-
key file named $VOL1.SVOL.AFILE. You want to move the files to a new volume, 
$NEW, without changing the file names. To move them, enter:  
The ALTER command changes the name of the alternate-key file in the file label of 
PRIFILE from $VOL1.SVOL.AFILE to $NEW.SVOL.AFILE. After you complete the 
DUP and RENAME operations, you can purge the original file: 
Copying Files to a Backup Volume
Copying disk files to a backup disk volume gives you quick access to the file copies. 
However, you should use disk backups in addition to, not in place of, tape backups made 
with the BACKUP and RESTORE programs. 
To perform a disk-to-disk backup operation, enter a FUP DUPLICATE command that 
copies all the files from one disk volume to another volume. For example, to duplicate 
all the files in disk volume $VOL1 to disk volume $BACKUP, enter:  
This command creates a backup copy of each file on $VOL1 on $BACKUP. Each 
backup file has the same file name and subvolume name as its original file. The 
-VOLUME $VOL1.OLDSVOL
-RENAME SVOL.PRIFILE,PRIFILE
-RENAME SVOL.AFILE,AFILE 
-ALTER PRIFILE, ALTFILE ( 0, OLDSVOL.AFILE ) 
-VOLUME $VOL1.SVOL
-DUP ( PRIFILE, AFILE ), $NEW.*.*
-VOLUME $NEW
-ALTER PRIFILE, ALTFILE ( 0, AFILE ) 
-PURGE $VOL1.SVOL.PRIFILE
-DUP $VOL1.*.*, $BACKUP.*.*, PARTONLY, SAVEALL 










