builddrscript

Converts the system-metadata disaster-recovery file into a set of recovery scripts used to recreate the system metadata in the event of a disaster.

Read syntax diagramSkip visual syntax diagram
>>-builddrscript--+---------+--file_name-----------------------><
                  +- -? ----+
                  +- -h ----+
                  '- -help -'

Parameters

–? | –h | –help
Displays a detailed description of this command, including syntax, parameter descriptions, and examples. If you specify a help option, all other command options are ignored.
file_name
Specifies the name of an existing system-metadata disaster-recovery file.

Prerequisites

You must have Backup, Operator, or Administrator privileges to use the command.

Description

Note: This command operates only against the local engine.

This command is used in conjunction with the mkdrfile command to create a set of recovery scripts that are used to recreate the system metadata in the event of a disaster. The builddrscript command is run against the system-metadata disaster-recovery file created by the mkdrfile command.

Note: The output for this command is written to the /usr/tank/server/DR directory. This command will overwrite any files that were created by a previous run of this command. If you want to preserve the existing files, copy them to another directory.

You would run this command against the system-metadata disaster-recovery file only if you are intending to recreate the system metadata.

After this command generates the recovery scripts, you must edit the scripts before running them.

Example

Builds the recovery scripts The following example builds the disaster recovery scripts from the system-metadata disaster-recovery file named dr1.
sfscli> builddrscript dr1
Disaster recovery script files for "dr1" were built successfully.

Parent topic: Administrative commands

Related reference
lsdrfile
mkdrfile
rmdrfile
startmetadatacheck
stopmetadatacheck

Terms of use | Feedback
(C) Copyright IBM Corporation 2003, 2004. All Rights Reserved.