IIB mqsirestorebroker command

IIB mqsirestorebroker command details below for reference.

mqsirestorebroker command to restore the broker configuration from a backup file.

As mentioned in IBM Integration Bus v9 Knowledge Center,

The mqsirestorebroker command restores the broker configuration from a backup file that you have created by using the mqsibackupbroker command. You can restore a broker only on a computer that has an identical configuration; the operating system must be at the same level, and the broker and queue manager names must be identical.
Usage notes

The command restores the following persistent configuration data associated with the broker that is contained in the backup file:

Deployed resources; message flows, dictionaries, JAR files, and other runtime resources that you have previously deployed in a BAR file.
Integration servers.
Broker configuration; for example, configurable services.

Always stop the broker before you run this command. If you specify -c to restore common configuration data that is shared with other brokers, you must also stop all brokers with which this broker shares that data. If you run this command when a relevant broker is active, the results are unpredictable.

If the mqsibackupbroker command that created the backup file includes information about files that were locked when the backup was taken, and therefore cannot be backed up, the mqsirestorebroker command returns the names of the files affected.

 

Command parameters,

mqsirestorebroker <parameters>

Where parameters are,

brokerName
(Required) The name of the broker that you want to restore. You must specify the name as the first parameter. If the name that you specify does not match the name of the broker associated with the backup file, the command fails.
-d directory
(Required) The directory in which the backup file is stored. The file must be stored in a file system that can be accessed by the computer on which you run this command.
-a archiveName
(Required) The name of the backup (archive) file.
-c
(Optional) Specify this parameter to restore all configuration data that is shared with other brokers on the same computer; for example, profiles.
-v traceFileName
(Optional) The location of a trace file that records details of the actions taken by the command.

Command Usage,

I have already taken backup as mentioned in earlier post, so the zip file exists to restore the broker.

On Windows,

mqsirestorebroker broker1 -d C:\brokerbackup -a broker1bkp_21072017.zip

On Linux,

mqsirestorebroker broker1 -d /tmp/brokerbackup -a broker1bkp_21072017.zip

There is no difference between IIB Integration Bus v9 and v10 for mqsiretorebroker command execution. IIB v10 Knowledge center link for reference here.