STORE and TurboSTORE/iX Products Manual (B5151-90003)
Chapter 6 91
STORE and TurboSTORE/iX Command Options
STORE Options
Use this form of the DATE parameter when you perform regular backups of a fileset. Store
the entire set, for example, once a week and store only those files that were modified or
their states were changed since the full backup the remaining six days.
NOTE
STORE uses the state change date when storing files with the DATE
parameter. To see the state change date, use the FINFO(
filename
,42) and
FINFO(
filename
,41) functions.
The following command file displays the state change date and time for a
specific file, such as TSETUTIL in this example:
parm file
setvar state_change 'STATE CHANGE = '+finfo('!file',42)+', '+finfo('!file',41)
echo !state_change
deletevar state_change
Example:
(77)>chdate TSETUTIL
STATE CHANGE = TUE, OCT 31, 1995, 3:49 PM
(78)>
Storing Files Not Accessed Since a Specified Date
You can also use the DATE parameter to store only files that have not been accessed since a
certain date. For example:
:FILE T;DEV=TAPE
:STORE @.OPERATOR.SYS;*T;DATE<=06/10/93
The year can be entered as two digits or four digits (93 or 1993). The above command
stores any files in the OPERATOR group of the SYS account that have not been accessed since
June 10, 1993. You may want to use this form of the DATE parameter with the PURGE
parameter to remove out-of-date files from your system. Refer to the next section.
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: