Backing up queue manager configuration

Backing up queue manager configuration can help you to rebuild a queue manager from its definitions if both the queue manager configuration and log data is lost due to the hardware failure and the queue manager is unable to restart or to be recovered from the log.


On UNIX, Linux, and Windows, we can use the dmpmqcfg command to dump the configuration of an IBM MQ queue manager.

On IBM i, we can use the Dump MQ Configuration (DMPMQMCFG) command to dump the configuration objects and authorities for a queue manager.


Procedure

  1. Make sure that the queue manager is running.
  2. Depending on the platform, use one of the following commands to back up the queue manager configuration:

    • On UNIX, Linux, and Windows: Execute the Dump MQ Configuration command, dmpmqcfg, using the default formatting option of (-f mqsc) MQSC and all attributes (-a), use standard output redirection to store the definitions into a file. For example:
      dmpmqcfg -m MYQMGR -a > /mq/backups/MYQMGR.mqsc
      
    • On IBM i: Execute the Dump MQ Configuration command (DMPMQMCFG) using the default formatting option of OUTPUT(*MQSC) and EXPATTR(*ALL), use the TOFILE and TOMBR to store the definitions into a physical file member. For example:
      DMPMQMCFG MQMNAME(MYQMGR) OUTPUT(*MQSC) EXPATTR(*ALL) TOFILE(QMQMSAMP/QMQSC) TOMBR(MYQMGRDEF)
      

Parent topic: Backing up and restoring IBM MQ queue manager data


Related tasks


Related information