tcl.sel-restore

Verb: Access/TCL, Releases: AP and R83

Restores item(s) from save media.

Syntax

sel-restore destination.file.reference {item.list*} {(options)} Account name on tape:? account.name File Name:? tape.file.reference

Description

selectively restores items from either a 'file-save', 'account-save', 'incremental save', or 'transaction log' media to a specific file.

Normal backup procedures ensure all the items in all the files are saved from time to time. Critical files can be backed up continuously using the transaction logger.

The media used for this backup can be SCT, half-inch tape, floppies, etc. For convenience, the save media is referred to as 'tape', or simply 'media'.

This verb can be invoked after the desired physical save media is put in the appropriate I/O device and attached with the appropriate command.

'destination.file.reference' indicates the file to restore into. The file must already exist.

'tape.file.reference' indicates the name of the file on the offline media.

The system prompts for the 'file name' of the file to restore from the save media. If a null 'file.reference' is entered, the account's master dictionary is restored.

'item.list*' designates which items to restore from tape. A null list restores all items.

The specified 'account.name' and 'file.reference' must match exactly with the appropriate name on tape.

To check the contents of the tape, the files can be listed by using a 'sel-restore' and specifying a 'dummy' account name and 'file.reference' on the tape. (A 'dummy' account/filename is one that does NOT exist in the system, such as 'oxymoron'). The entire tape is searched looking for the 'dummy' account, printing the names of the files on the tape.

In restoring both the dictionary and data section of a file, restore the data section first. Although the dictionary name appears before the data section name on the screen, the data is saved (and restored) before the dictionary.

At any point, the media may be moved backward ('t-bck (n)'), or forward ('t-fwd (n)') to position it (assuming that the 'save' media device supports the command), and a 'sel-restore' with the 'a' or 'n' option may be started. This may be faster than restarting the tape from the beginning when restoring both the dictionary and the data sections of a file, or when restoring multiple files. Unfortunately, however, SCT's do NOT allow 't-bck'; the only recourse is rewinding ('t-rew') and moving forward to the correct file ('t-fwd').

Account dictionaries (master dictionary items) follow all other files for each md on the tape.

If 's' is specified when the save tape is created, the contents of the tape can be seen using 'list-file-stats' anytime before another file save using the 's' option.

Options

a Indicates that the media is already positioned at the correct account. The 'a' option is used to avoid rewinding and searching. If the order of the file on the tape is known (from the 'list-file-stats' report normally generated following the save) then multiple files may be restored without rewinding the media. After the first file is restored on the account, the next 'sel-restore' is done using the 'a' option. The 'sel-restore' process prompts directly for file.reference. The system next prompts for 'full, incremental, or transaction restore'. As the tape is searched, the file names on it are printed, along with the file numbers. Names are indented one space for account names, two spaces for dictionaries, and three for data file names. At the completion of the restore, the system again prompts for incremental and transaction restore.

c Causes every item in current file to be a candidate for restore. This ensures that data can be restored even if a 'd-pointer' is damaged on the tape. This option is used with the 'n' option.

f Displays all file.references for all accounts. This is not compatible with the 'n' option.

i Item-ids of the restored items are not to be printed.

n Restores file by its number. The process prompts for the number of the file to restore. This option is particularly useful for restoring from a multi-reel backup media, so that the restore can begin from the reel where the file resides (or begins). The file number can be found on the 'file statistics' report for the appropriate save media. See 'list-file-stats'.

o Overwrites, if a duplicate item-id is found on disk. 'd-pointers' are protected from being overwritten.

s Suppresses the ''item-id' exists on file' message.

Example

sel-restore dict devices
Restore from (F)ull account, (I)ncremental, (T)ransaction log: _ f
Account name on tape: dm
File name: dict devices
:
Scans the file-save tape, and finds the 'dm' account
Scans the DM account and finds the 'dict devices' file
Scans the DEVICES file and restores the requested item(s)
:
Restore from Incremental save tape? _ no
Restore from transaction log? _ no

See Also

Command Name Type Description
tcl.set-floppy Verb: Access Attaches floppy diskette drive to current process.
tcl.set-half Verb: Access Attaches half-inch tape drive to current process.
tcl.set-sct Verb: Access Attaches streaming cartridge tape to current process.
tcl.file-save Verb: Access System backup process.
dummy.save Definition Validates integrity of save media.
tcl.set-device Verb: Access Attaches device (sct/floppy/half) on AIX.
tcl.set-tape-type Verb: Access Indicates type of half-inch tape drive.
tcl.set-sct-dma Verb: Access Sets dma channel for sct.
access.t-load Verb: Access Loads data from t-dump format magnetic media.
tcl.itemlist* Definition Specifies list of item-ids for TCL2 processes.
tcl.t-att Verb: Access Attaches magnetic media unit to current process.
tcl.set-8mm Verb: Access Selects/attaches 8mm cartridge.
tcl.list-file-stats Verb: Access Generates file statistics report.
tcl.save Verb: Access Invokes backup process.
tcl.account-restore Verb: Access Restores one account.
dummy.restore Definition Validates integrity of save media.
tcl.account-save Verb: Access Saves one account to magnetic media.
filename.restore-errors Definition File used to record errors during restore.
restore Definition

User Comments

What do you think?

Share your experience or ask a question by using the form below.

Login to leave your comments.