Unicon - ELIAS 18 - Export MongoDB and restore to existing ELIAS 18 installation

book

Article ID: CTX695746

calendar_today

Updated On:

Description

  • On Server A, open the Command Prompt.

  • Navigate to the MongoDB binaries directory:

    cd C:\Program Files\MongoDB\Server\4.0\bin
  • Run the mongodump command to back up the database to C:\Temp\mongodump:
    mongodump -d=ELIAS-Database --out=C:\Temp\mongodump

    • Wait until the process finishes successfully.

 

  • Copy the contents of C:\Temp\mongodump from Server A to C:\Temp\mongodump on Server B
  • On Server B, open the Command Prompt.

  • Navigate to the MongoDB binaries directory (replace x.x with the installed version):

    cd C:\Program Files\MongoDB\Server\x.x\bin
  •  Run the mongorestore command to restore the database from the backup:
    mongorestore C:\Temp\mongodump
    • Wait until the restore process completes

 

  • Launch ELIAS 18.

  • Log in with your credentials.

  • Open Settings:
    image.png

  • Select MongDB
  • Check the database connection properties
    image.png

Issue/Introduction

To migrate or restore a MongoDB database into an existing ELIAS 18 installation, you first export the database from the source server using mongodump, transfer the backup files to the target server, and then restore them using mongorestore. After the restore process completes, you can start ELIAS 18 and verify the MongoDB configuration in the settings.