web stats
Backing up Code Templates on a daily bases? - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 03-21-2012, 02:30 AM
Markhlewis Markhlewis is offline
What's HL7?
 
Join Date: Jun 2010
Location: Kansas City Area
Posts: 3
Markhlewis is on a distinguished road
Default Backing up Code Templates on a daily bases?

Does anybody have a script that would backup "Code Templates" on a daily bases? I have one for "Channels" but cannot figure out how to do one for the code templates only. I'm using Mirth 2.1.1.5490 & SQL 2008 in a windows environment.

Any help on this matter would be greatly appreciated!!

Thanks!

Mark
Reply With Quote
  #2  
Old 03-21-2012, 05:09 AM
narupley's Avatar
narupley narupley is online now
Mirth Employee
 
Join Date: Oct 2010
Posts: 7,111
narupley is on a distinguished road
Default

As with anything, there are a variety of ways this can be done.... You could set up a service (either within or without Mirth) to query from your database and backup the code_template table that way. You could also use the Mirth CLI, by passing it "-s scriptfilename", and having a script containing "exportcodetemplates outfilename". You can do this outside of Mirth with a service that calls mccommand, or inside of Mirth with a channel that creates an instance of CommandLineInterface with the appropriate arguments. Yet another way to do it is do create a Client or CodeTemplateController, get a List of CodeTemplate objects, and then extract the relevant data that way.

Hope that helps!
Reply With Quote
  #3  
Old 03-22-2012, 01:14 AM
Markhlewis Markhlewis is offline
What's HL7?
 
Join Date: Jun 2010
Location: Kansas City Area
Posts: 3
Markhlewis is on a distinguished road
Default

Thanks for the feedback...This looks like it might be helpful, I'll have to try some of your technique's out.!

Thanks again!

Mark
Reply With Quote
Reply

Tags
backup, batch process, code template

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 03:35 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Mirth Corporation