Restoring queue manager configuration
We can restore the configuration for a queue manager from a backup by first making sure that the queue manager is running and then running the appropriate command for the platform.
About this task
On UNIX, Linux, and Windows, we can use the runmqsc command to restore the configuration of an IBM MQ queue manager.
On IBM i, we can use the STRMQMMQSC command to restore the configuration objects and authorities for a queue manager.
Procedure
- Make sure that the queue manager is running. Note that, if damage to the data and logs is unrecoverable by other means, the queue manager might have been re-created.
- Depending on the platform, use one of the following commands to restore the queue manager configuration:
- On UNIX, Linux, and Windows, run runmqsc against the queue manager, use standard input redirection to restore the definitions from a script file that is generated by the Dump MQ Configuration (dmpmqcfg) command (see Backing up queue manager configuration). For example:
runmqsc MYQMGR < /mq/backups/MYQMGR.mqsc- On IBM i: Run STRMQMMQSC against the queue manager, and use the SRCMBR and SRCFILE parameters to restore the definitions from the physical file member that is generated by the Dump MQ Configuration (DMPMQMCFG) command (see Backing up queue manager configuration). For example:
STRMQMMQSC MQMNAME(MYQMGR) SRCFILE(QMQMSAMP/QMQSC) SRCMBR(MYQMGR)
Parent topic: Backing up and restoring IBM MQ queue manager data
Related tasks
Related information
- dmpmqcfg (dump queue manager configuration)
- runmqsc (run MQSC commands)
- Dump MQ Configuration (DMPMQMCFG)
- Start IBM MQ Commands (STRMQMMQSC)