tcl.account-restore

Verb: Access/TCL, Releases: AP and R83

Restores one account.

Syntax

account-restore account.name {(options)}

Description

restores an account from an 'account-save', 'file-save' or 'md-save' magnetic media.

The account/master dictionary will not be restored if it already exists in the 'mds' file.

The system prompts for the 'ACCOUNT NAME ON TAPE'. It only has to be entered if the account name on tape is different than the account name stated in the command line.

Additional changes saved on a transaction log and/or incremental save tape may also be applied, once the account/master dictionary has been restored. The default settings prompt for both of these.

An 'account-restore' may be started from any tape of a multi-tape 'file-save'.

To save time in searching a tape, the 'list-file-stats' listing may be consulted to determine the reel on which the data for the master dictionary starts. The listing is only generated if the 's' option is chosen while doing a save.

After the restore is complete, the system creates indices for files having an index specified in the file-defining item.

The appropriate media/device must be attached prior to issuing this command.

Options

frame.size (integer number). Designates the frame size of the source system which created 'save' media. This option automatically affects modulos, which are either divided or multiplied by the given number, according to the data frame size on the target machine (see the 'what' command for determining data frame size). If the target frame size is bigger than the source frame size, all modulos are divided by the ratio (target / source = ratio). For example, if the target system has 2K data frames and the source system had 500-byte frames, the modulos would all be divided by 4. This file resizing operation occurs after the reallocation parameter has been checked, unless file resizing has been disabled during the initial boot process.

a Indicates that the tape is already positioned at the data section of the correct account. This means that it is positioned PAST the label, right at the beginning of the data. For example, if the 't-fwd' command was executed to position to the right spot on the tape, a 't-rdlbl' command would have to be executed to be positioned at the beginning of the data.

c 'compatible' tape. This is used on tapes produced on 'licensee' systems (Ultimate, McDonnell Douglas, ADDS, GA, etc.) The restore process runs noticably slower. (AP only)

d Data-sensitive files. All files except the md will be restored as ds-type files (case sensitive). (AP only)

f Disables the 'fast' restore on 6.1 and above. This should always be used when restoring non-AP tapes.

n Disables file reallocation process.

s Ignores tape label information. (R83 only)

s Suppresses messages on txlog tapes. (AP only)

z Bypasses prompts for restore from incremental or transaction logs. (AP only)

Example

account-restore production
account name on tape: <return>

This restores the 'production' account from tape and calls it
'production'.

account-restore dm.old
account name on tape: dm

This restores the 'dm' account from the tape and calls it
'dm.old'.

account-restore OLD.R83.PROD (500
account name on tape: PROD

This restores an account created on a system with 500 byte data frames. If the
target were to have a data frame size of 2K, for instance, all new modulos will
be divided by 4 to prevent files from being drastically oversized.

See Also

Command Name Type Description
tcl.md-restore Verb: Access invokes the 'account-restore' command.
tcl.f-resize Verb: Access Calculates a new recommended modulo for the requested files.
tcl.sel-restore Verb: Access Restores item(s) from save media.
tcl.file-save_rp Verb: Access System backup process.
tcl.file-save Verb: Access System backup process.
tcl.save Verb: Access Invokes backup process.
tcl.admin.files Menu Menu for saves and restores.
tcl.set-8mm Verb: Access Selects/attaches 8mm cartridge.
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.set-sct-dma Verb: Access Sets dma channel for sct.
tcl.set-device Verb: Access Attaches device (sct/floppy/half) on AIX.
files Definition Description of Pick file organization.
tcl.list-restore-errors Verb: Access Displays errors recorded during a restore.
tcl.update-md Verb: Access Updates an account to AP.
tcl.indexer Verb: Access Creates b-tree indices for account.
dummy.restore Definition Validates integrity of save media.
tcl.tlog-restore Verb: Access Restores the transaction log records.
tcl.set-tape-type Verb: Access Indicates type of half-inch tape drive.

User Comments

What do you think?

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

Login to leave your comments.