HP 3000 Manuals

Removing Stored Files from the System: Archiving Files (PURGE) [ STORE and TurboSTORE/iX Manual ] MPE/iX 5.0 Documentation


STORE and TurboSTORE/iX Manual

Removing Stored Files from the System:  Archiving Files (PURGE) 

If your system contains infrequently used or out-of-date files, you can
store them onto backup and permanently remove them from the system disks
at the same time.  This process, called archiving files, increases
available space and provides a backup copy of the files in case you need
them in the future.  To store disk files and then delete the disk files
in a single operation, use the PURGE parameter of the STORE command.  For
example: 

     :FILE T;DEV=TAPE 
     :STORE @.OLD.ACCTG;*T;PURGE 

The command above stores all files in the OLD group of the account ACCTG
and deletes the files from disk.  PURGE deletes the files only after it
has successfully stored all of them.  Thus, if STORE terminates in the
middle of the process, it does not purge any files.

You can combine the DATE and PURGE parameters to periodically archive
unused files.  For example, the following STORE command stores to backup
all files in the EMPRECS group of the PERSONEL account that have not been
accessed since February 2, 1992 and then deletes the disk files:

     ;FILE T;DEV=TAPE 
     :STORE @.EMPRECS.PERSONEL;*T;DATE<=02/02/92;PURGE 


NOTE In order to use the PURGE parameter with a privileged file or files, you must have system manager (SM), system supervisor (OP), or privileged mode (PM) capability.
You may want to warn users before you archive files and inform them how to request to have archived files restored. If you need to restore purged files to the system, you can find them on the backup to which you stored them and on the backups from the last full system backup you performed before you purged the files.


MPE/iX 5.0 Documentation