Backup and Restore 2 Manual
Using the BRCOM Command Interface
Backup and Restore 2 Manual—522696-019
4-7
Using an IN File
BRCOM generally continues processing the command file even if an error occurs while
processing the commands. However, when BRCOM processes concatenated
commands, subsequent commands are ignored if an error occurs.
Using an IN File
You can use an IN file to start BRCOM or for a BACKUP or RESTORE command.
Using an IN File for a BACKUP or RESTORE Command
To use an IN file for a BACKUP or RESTORE command:
At the command line, use the IN run option to specify the IN file. You cannot
include anything on the command line after the IN run option. You cannot specify
object specifications, job options, or configuration options on the command line.
For example:
BR> backup $a4, in bckin;
An example of an IN file (bckin) is:
backup $tape, oss /,listall on;
The IN file must contain only one BACKUP command or one RESTORE command.
It cannot contain other commands.
The IN file cannot include the IN run option.
If any duplicate run options are in both the IN file and command line, the command
line overrides the values in the IN file. In the above example of an IN file, $a4
overrides $tape.
The IN file must contain a complete, valid BACKUP or RESTORE command,
terminated with a semicolon, including:
A tape device name. Although the command you specify in the IN file must
contain a tape device name, the tape device name that you specify on the
command line always overrides it. Backup and Restore 2 does not support
virtual tape drives created by TAPESIM because TAPESIM does not support
LBA. Any attempt to get the LBA on a tape drive created by TAPESIM results
in file-system error 2.
For a parallel backup job, two tape device names are enclosed in parentheses.
One or more object specifications are required unless you are restoring only
the BRIC file or BRCMD file. In that case, you are not required to specify an
object. However, the LISTONLY job option requires one or more object
specifications. To restore the BRIC or BRCMD files,
see RESTOREBKUPSPEC Job Option
on page 7-49 and
RESTOREDIR Job Option
on page 7-49.
Job options, if being used, must be in the IN file.