DV2000 7 Database upgrade

When upgrading to DV2000 7 the existing database server must also be upgraded. This upgrade must be performed manually to ensure their are no errors and is completed correctly.

This upgrade is intended only for those systems upgrading to DV2000 7 and should not be performed on any system not doing so. Upgrading an existing system without upgrading the DV2000 will result in the inability to run any of the web applications including InnDesk.

Requirements

Instructions

This procedure typically can be performed in 5 minutes or less depending on the amount of data in the database. These steps do not include the full DV2000 7 installation instructions.

Preparation

Backup

Backup the existing database. This will ensure if the process fails a full copy of the database has been saved.

  1. Run Backup from the Windows start menu DV2000 Utilities | Backup, or from the command line via dvbackup.exe.
  2. Do not check Include Messages. Messages are not stored in the database and therefore do not need to be backed up.
  3. Choose Manual Backup and select a file name and location you can remember. We suggest C:\VMBACKUP\predbupgrade.vmb.

Data Export

Using the following method will export the existing database so that we can be restored later. No data will be deleted during this step.

  1. Open a CMD or Windows Powershell process window.
  2. Run the following command.
    mongodump -d bandon -o c:\oem\dbv2
  3. Verify the folder c:\oem\dbv2 contains a folder called bandon and it contains multiple .json and .bson files of various sizes.
  4. If the folder is blank or contains no files, check for any errors while running mongodump.
  5. Leave this window open for performing the restore later.

Database Uninstall

We must first uninstall the existing database server from Windows Settings | Apps & features. This can also be performed using the control panel via Programs and Features.

  1. Choose MongoDB.
  2. Click Uninstall.
  3. Ensure the removal of existing databases is checked or the new install will fail.

Database Upgrade

Run the new database upgrade. It can be downloaded here.

Data Restore

This will restore the database content into the new database using the new server.

  1. Using the same process window before or from a new CMD or Windows Powershell process window.
  2. Run the following command.
    mongorestore c:\oem\dbv2

Verification

  1. Open Mailbox Administration.
  2. Verify it shows your existing mailboxes.
  3. Verify a few mailboxes show information by double-clicking on one or more.
  4. If you are certain the restore was successful you may delete c:\oem\dbv2 to save space.

DV2000 7 Install

It's now possible to run the DV2000 7 install.