Saves one or more accounts, or files, to tape.
Caution
The Procs ACCOUNT-SAVE, F-S, FILE-SAVE and M-A-S all use the SAVE command and should be used at TCL in preference to the SAVE command.
Daily backup procedures should normally use physical saves (SAVE-IMAGE or realdump) for high performance, and logical saves (for example, the FILE-SAVE TCL command) for transferring data between databases. Refer to the Overview of Save and Restore for important information about using logical and physical saves.
TCL-II command.
SAVE SYSTEM {item-list} {options}
SYSTEM Identifies the System Dictionary (which defines all the accounts and system files on the database).
item-list is the names of accounts and/or system files to be saved (in the order in which they are to be saved, separated by spaces) or an asterisk to indicate that all accounts are to be saved.
item-list can be omitted if an item list is provided by an immediately preceding list generating command, or if the I option is used.
A Dumps dummy ABS.
D Dumps data files (default - this option does not need be specified.).
F Lists file names as well as account names.
I Saves individual account for which you are subsequently prompted. I is overridden if item-list is supplied. I suppresses status line display.
K Kills output to tape. Used to generate statistics only. Valid only with S or Z.
O Override any DX or DY D/CODEs encountered.
P Prints the standard terminal output to the printer assigned to your process.
S Suppresses output to tape and generates file statistics in STATFILE.
T Inhibits writing of the tape label.
If this is specified, the first ?
prompt is inhibited.
Z Creates file statistics in user-specified file. Z is overridden by S.
SYSMAN and SYSPROG accounts only. If run from SYSPROG, accounts with update/retrieval lock codes are not saved.
Multiple reel Multiple-Account-Saves cannot be restored on Reality Release 7.0 or earlier.
Synonym (Q-Pointer) and remote (R-Pointer) accounts are not saved. Only accounts defined as D-Pointers are saved.
Data saved using SAVE cannot be restored on pre-7.0 Reality systems. Use the OLD-SAVE command.
A SAVE tape comprises some or all of the following sections (depending on options) in the order:
Unless you specify the I option, SAVE displays the following data on the status line if the terminal supports status line addressing.
Attach tape units using ASSIGN, or T-ATT, with the default channel.
Note: The record size used with encrypted tape devices must be a multiple of 8.
At the TCL prompt enter SAVE with the required options.
If the I option is specified and an item-list is not supplied, the system prompts for an account-name (that is, the item-id of an account defined in SYSTEM).
ITEM ID:
Enter the account name.
Depending on the options specified, the system
displays a series of up to three prompts of the form ?
. Information is
prompted for in the following order:
When you have entered the appropriate information, the save continues. Then, on completion, the number of GFEs encountered is displayed and you are returned to TCL.
Failure to write data to tape may result in an error message:
Tape operation failed (after retries) Bad Tape - unable to continue. Type "Q" to Quit
Refer to the topic Error Messages for details on what to do.
Enter T-REW to rewind the tape to the BOT and then use the VERIFY-SAVE command to check the integrity of the FILE-SAVE tape.
The following shows a typical SAVE procedure.
:ASSIGN =TAPE 1 [1021] DEVICE(S) TAPE 1 NOW ASSIGNED RECORD SIZE = 16000 DENSITY = 1600 :SAVE SYSTEM PERSNL ACCTS (DFZ ? TEST (tape label) ? STAT1 (statistics file) SYSTEM PERSNL . . . [99]45 TAPE RECORDS WRITTEN :