NetXMS Support Forum

English Support => General Support => Topic started by: cekamens on July 06, 2010, 09:17:32 AM

Title: migrate netxms core server and db to another server
Post by: cekamens on July 06, 2010, 09:17:32 AM
Can somebody tell howto correctly move netxms server with db to another server.



A
Title: Re: migrate netxms core server and db to another server
Post by: Victor Kirhenshtein on July 07, 2010, 01:27:07 PM
Hi!

The most generic way is the following:

1. Stop netxmsd on old server
2. Export database using nxdbmgr:


nxdbmgr export export_file


3. Install same version of NetXMS on new server
4. Create and initialize new database as usual
5. Import data using nxdbmgr:


nxdbmgr import export_file


6. Run netxmsd on new server

If you will use different IP address on new server, you must add it as master server in agent configuration files.

If you are using external database which will not be migrated, you can just install NetXMS on new server and copy netxmsd.conf from old server - it should start working with same database without problems (don't forget to stop netxmsd on old server first).

Also, if you are migrating to same database engine, using database migration tool from database engine could be more effective.

Best regards,
Victor