Author |
Message
|
nukenrg |
Posted: Mon May 19, 2003 10:04 am Post subject: Backing-Up WMQI Environment |
|
|
 Newbie
Joined: 29 Apr 2003 Posts: 5 Location: Chicago, IL
|
Hello all-
"Long-time listener, First-time caller" here!
I'm writing a script to periodically export my message sets and message flows.
I use mqsiexportmsgflows from SupportPac IC01 to automate the exporting of my message flows, however what I'd like to do is automatically export my message sets.
Currently I am using mqsiimpexpmsgset, but because I cannot pass it a wildcard, I need to specify the name of each message set (and have a separate line for each.) I can live with this in my production environment since I have almost exclusive control of the environment, but in my more dynamic development environment, where I need it the most, I need to set up a more automated solution.
Does anyone have any suggestions on how I can get a batchfile to extract from the environment the names of all the message sets in the Config Manager so that I can programatically export them for backup purposes?
Or am I missing something blindingly obvious here?
Thx! |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon May 19, 2003 10:09 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
You are probably better off backing up the databases directly, instead of indirectly by backing up your message sets and message flows.
Plus, you should probably be exporting each message flow and message set individually (i.e. by hand) for revision control purposes as well.
That said, you could attempt to read the MRM database to find out the names of message sets, and then script that to create your exports. But that's only going to stay valid until the next time IBM changes the layout of the MRM database. |
|
Back to top |
|
 |
Lillian |
Posted: Thu Mar 10, 2005 5:06 am Post subject: |
|
|
Centurion
Joined: 15 Apr 2002 Posts: 102
|
Hi
Nukenrg, were you able to automate the backup a specific message set (on windows). please could you post the procedure.
Regards
Lillian |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Mar 10, 2005 6:05 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Lillian wrote: |
Nukenrg, were you able to automate the backup a specific message set (on windows). please could you post the procedure. |
What are you trying to accomplish? _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
Lillian |
Posted: Thu Mar 10, 2005 6:20 am Post subject: |
|
|
Centurion
Joined: 15 Apr 2002 Posts: 102
|
Hi
I need to write a script that will automatically( schedule) a backup (weekly)of the specific message set that is being used by several developers. If the developer mess up this message set I would like to just reimport the latest .mrp file instead of restoring the whole database
I am already backing up the databases for more comprehensive restores. |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Mar 10, 2005 6:27 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
You should have your developers start using a version control system. It should be their responsibility to export message sets and flows into XML files, and put them into the repository.
If you are using version 5, then this is a lot easier on the developers.
CVS is an open source, free as in beer, version control system that is supported out of the box in the Version 5 Tooling. You only have to install a CVS server somewhere. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
Lillian |
Posted: Thu Mar 10, 2005 6:35 am Post subject: |
|
|
Centurion
Joined: 15 Apr 2002 Posts: 102
|
I understand. We will be migration to version 5 soon.
Till then, is there a way of scheduling the export of the file ( message set ) on a weekly basis? |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Mar 10, 2005 6:51 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
well, mqsiimpexpmsgset, right?
nukerng's original problem was that mqsiimpexpmsgset only allowed him to export a specific message set, not a group of message sets. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
malammik |
Posted: Thu Mar 10, 2005 1:12 pm Post subject: |
|
|
 Partisan
Joined: 27 Jan 2005 Posts: 397 Location: Philadelphia, PA
|
This is way different but how about using CVS or some other versioning system for all ur broker work-products and tag every production release. For back up and increased reliability we could run DB2 and MQ using linear logs.
Let's say we developed a bunch of C programs, we dont back up our object files or built executables, do we? By no means I am saying that you are trying to do is wrong. In many environments this would be a requirement but it certainly comes at additional administrative overhead.
Good luck.
I just noticed that I posted pretty much the same thing Jeff said. Sorry if this sounds repetitive. _________________ Mikhail Malamud
http://www.netflexity.com
http://groups.google.com/group/qflex |
|
Back to top |
|
 |
|