For a default install, MQ stores all of the queue manager(s) information in the following directory:
- For Windows, the directory is: C:\ProgramData\IBM\MQ\qmgrs\{QMgrName}\
- For Unix/Linux, the directory is: /var/mqm/qmgrs/{QMgrName}/
If you only have 1 queue manager then it's pretty straight-forward. For more than 1 queue manager, you just repeat the following steps for each queue manager.
Here's what I do before I do a major upgrade for Linux, Unix or Windows. i.e. 9.2 -> 9.3
- Log onto the server as an authorized MQ user
- Run the dmpmqcfg command against each queue manager (it must be running) and dump everything to a file
- Stop all queue managers on the server (before taking a backup)
- Go to the "qmgrs" directory. i.e. C:\ProgramData\IBM\MQ\qmgrs\
- For Windows, zip/compress each queue manager directory. i.e. Queue Manager name of MQA1
zip -r -o MQA1_backup_20240105.zip MQA1\*.*
- For Unix/Linux, tar then compress each queue manager directory. i.e. i.e. Queue Manager name of MQA1
tar -cvf MQA1_backup_20240105.tar MQA1/*
zip -r -o MQA1_backup_20240105.tar.zip MQA1_backup_20240105.tar
S