Backing up IBM MQ configuration means preserving the blueprint of your queue manager—every queue name, channel CONNAME, listener port, and security rule—so you can rebuild after hardware failure, corruption, mistaken DELETE, or datacenter loss. Messages on queues are data; object definitions are infrastructure. DR plans that only snapshot disks without readable MQSC exports leave teams guessing attribute values at 3 a.m. Mature estates store desired state in Git, run scheduled exports to detect drift, and backup keystores and ini files with the same discipline as database schema backups. This tutorial explains what to include in config backups, tools such as dmpmqcfg and scripted DISPLAY, file-level backup scope, z/OS catalog and CSQ considerations, pairing config backup with message and log backup, restore testing, retention, and compliance evidence for auditors who ask how quickly you can recreate QM_PROD definitions elsewhere.
Configuration is the repository of objects and queue manager properties. Message data is payload bytes on QLOCAL and transmission queues plus log records. EXPORT and dmpmqcfg capture configuration; media backup and replication capture messages and logs. Restoring config onto a fresh queue manager creates empty queues unless you also restore queue data files from coordinated backup. Document RPO and RTO separately for each.
| Item | Why it matters | Typical capture method |
|---|---|---|
| Object definitions | Recreate queues/channels | dmpmqcfg, MQSC export, Git |
| qm.ini / mq.ini | Paths, services, tuning | File copy, config management |
| OAM / AUTHREC | App access after restore | dspmqaut export, setmqaut script |
| TLS keystores | Channels and clients start | Secure vault backup |
| RACF profiles (z/OS) | SAF checks pass | RACF backup utilities |
IBM provides dmpmqcfg on supported distributed releases to dump configuration in a structured form suitable for restore with crtmqcfg or equivalent per documentation—verify command names for your version. Schedule dmpmqcfg after change windows into dated directories. Compare yesterday versus today to find drift when someone altered production manually in Explorer. z/OS may use different export paths—consult IBM MQ for z/OS operations guides and CSQUTIL DISPLAY exports.
12345# Illustrative distributed backup (verify flags for your MQ version) dmpmqcfg -m QM1 -o /backup/mq/QM1/config-$(date +%Y%m%d).out tar -cf /backup/mq/QM1/ini-$(date +%Y%m%d).tar qm.ini mq.ini # Store OAM separately dspmqaut -m QM1 > /backup/mq/QM1/auth-$(date +%Y%m%d).txt
Teams practicing GitOps store MQSC scripts and Terraform IBM MQ resources in version control. The backup is the Git history plus tagged releases. Production must match main branch or documented drift is incident. Pull requests review DEFINE changes like application code. Pair with automated runmqsc deploy to test environments before prod. Git does not replace keystores in vault—never commit private keys.
Config backup is photocopying the architect’s blueprint of mailboxes and roads, not photocopying the letters inside the boxes.
Snapshotting the queue manager directory while running requires crash-consistent or application-consistent backup products that integrate with IBM MQ quiesce guidance. Uncoordinated copy may corrupt repository if taken mid-write. Many sites prefer logical export (dmpmqcfg) over raw file copy for config-only recovery. Message recovery needs log and queue file backup per IBM restore procedures—often with queue manager quiesced or using storage replication.
SSLKEYR and AMS keystores must be backed up encrypted with access controls. Restore DR site fails channels if certificates expired or wrong label. Document certificate expiry in the same calendar as config backup tests. RACF profiles on z/OS are backed up with standard RACF utilities—MQ cannot start applications if profiles are missing after LPAR restore.
Retain config backups per regulatory retention—often years for finance. Label with queue manager name, date, and change ticket. Auditors request proof that production ALTER on channel X is traceable to Git commit or backup delta. Immutable storage (WORM, object lock) prevents ransomware from deleting backup catalog.
Backup each queue manager independently—QM_London and QM_NewYork have separate exports. Document channel pairs so restore order recreates both sides. Cloud managed MQ may use cloud provider export APIs plus local Git for client channel definitions and CCDT.
We save the list of all mailbox names and rules so we can rebuild the post office if the building floods, even if the letters inside are saved separately.
Run export for lab QM; store in dated folder; document restore command from IBM doc.
List items in your backup that are NOT in Git today.
Write DR test success criteria for config-only restore.
1. Config backup includes:
2. Git-stored MQSC is:
3. dmpmqcfg exports:
4. After config restore apps may need: