Migrate from localhost to real server

Dear experts and community,

I am using:

  • DHIS2 version 2.40.1 (Windows)
  • PostgreSQL 14.9
  • Openlogic-openjdk-17.0.16+8-windows-x64
  • Postgis-bundle-pg15-3.5.3x64

I have setup the Metadata on localhost on my laptop, now I need the assistance to migrate to real server. Can everyone guide me or is there a video turtorials? Thanks in advance.

Best, Kiry

1 Like

Hi @hengkiry
Have you tried the Import/Export app? For a basic metadata import/export where both instances use the same versions for the software, a JSON export then import should work. You might want to do a ‘dry run’ first to see if any error comes up.

Also, another community member @j.afo found that it’s even better to import in bits, which I completely agree with because if an error appears during the dry run, you’d know which exact metadata had an issue.

You can read more about the Import/Export app, Import/Export - DHIS2 Documentation

There are other options you could look into such as using the DHIS2 API , and check out the available community supported apps: DHIS2 App Hub

Thank you!

1 Like

Hi @Gassim , I haven’t tried anyways, I will follow your guidances one by one and get you back if I face any difficutly. Thanks

2 Likes