web stats
Migrating Servers - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Thread Tools Display Modes
Old 06-15-2012, 12:09 PM
upstart33 upstart33 is offline
Mirth Guru
Join Date: Dec 2010
Location: Chicago, IL.
Posts: 461
upstart33 is on a distinguished road
Default Migrating Servers


Just wondering what the proper protocol to follow on migrating servers would be.

I had Mirth setup on 1 box, and now I have a new server that I want to migrate to without losing any data from the postgres db.

Some people have suggested just copying over the file structure to the new box, then performing an 'upgrade', while others have suggested installing a new instance of Mirth and the database, and then restoring from a backup of the db.

Is there any official way suggested to do it or any documents I can peruse? I have looked at the Wiki and can only find info for upgrading an existing instance on the same server.
Reply With Quote
Old 06-18-2012, 03:55 AM
narupley's Avatar
narupley narupley is online now
Mirth Employee
Join Date: Oct 2010
Posts: 7,126
narupley is on a distinguished road

If the new instance of Mirth Connect will be the same version, then either method should work.

If you plan for your new instance to also be a newer version, either method will still work as long as you do it correctly. Realize that certain versions have subtle differences in schema structure. I think that in the migration/upgrade case, the best solution might be to upgrade the original instance first. Then install the same new version of Mirth Connect on the new machine (making sure to register services/daemons with the same names), install all your extensions, etc. Then you should safely be able to restore your PostgreSQL database from a backup.

Like I said though, either of your methods (or the one I suggested) will work in either case so long as it's done correctly.
Step 1: JAVA CACHE...DID YOU CLEAR ...wait, ding dong the witch is dead?

Nicholas Rupley
Work: 949-237-6069
Always include what Mirth Connect version you're working with. Also include (if applicable) the code you're using and full stacktraces for errors (use CODE tags). Posting your entire channel is helpful as well; make sure to scrub any PHI/passwords first.

- How do I foo?
- You just bar.
Reply With Quote
Old 06-19-2012, 06:17 AM
upstart33 upstart33 is offline
Mirth Guru
Join Date: Dec 2010
Location: Chicago, IL.
Posts: 461
upstart33 is on a distinguished road

Just a quick update for any of those interested in migrating servers.

I was able to successfully move my Mirth Connect instance and Postgres database to another server without any real issues.

Assuming you are not upgrading versions, all that needs to be done is to install Mirth and the database on the new box, create a blank mirthDB, then restore from a Postgres backup taken from the old server.

All your channels, settings, and messages will be retained.

Protip: Make sure you are using the correct version of Java on your new box for the version of Mirth you are installing.
Reply With Quote

installation, instance, migrating, server

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:23 AM.

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