Restore / Import configuration

Restoring your previous configuration using the Management Console

After installing your upgrade, you can restore your previous configuration. The preferred method of restoring your settings is by using the Metadefender Core Management Console.

  1. Access the Metadefender Core Management Console.

  2. Click the Backup/Restore tab.
    images/download/attachments/24901302/BackupRestore.png

  3. Click Browse , scroll to the locations where you stored the backup, and select the backup.
    images/download/attachments/24901302/UploadBrowse.png

  4. Click RESTORE FROM BACKUP .
    images/download/attachments/24901302/UploadRestore.png

Importing your previous configuration using the command line

If you exported your configuration using the command line, you can import those settings into your upgrade.

omsConfig.exe import <file path> [<option>]

omsConfig.exe is installed in the Metadefender Core Installation directory (e.g., C:\Program Files (x86)\OPSWAT\Metadefender Core 4).

Note: All settings will take effect after a restart of Metadefender services 

Importing Quarantined File and Email history

If you exported your MetadefenderQuarantine database you can import this information back after upgrading

  1. Stop Metadefender Quarantine service

  2. Open a Windows command prompt in administrator mode

  3. Navigate to <Metascan installation folder>\Mongo\64+ (e.g. C:\Program Files (x86)\OPSWAT\Metadefender Core 4\Mongo\64+)

  4. Run the following command:

    mongorestore.exe --host localhost --port 27018 --db MetadefenderQuarantine <path>

    Replace <path> with the directory where you saved the MetadefenderQuarantine database export. See https://docs.mongodb.com/manual/reference/program/mongorestore/#bin.mongorestore for more information about mongorestore.exe

    Exporting/Importing the MetadefenderQuarantine database is a slow process and may take hours if your database is larger than a few GB.

  5. Start Metadefender Quarantine service

Importing process history

If you exported your scan results history using mongodump as described in Backup / Export configuration, you can import the history after you have completed upgrading.

  1. Open the Windows command line as an administrator.

  2. Navigate to <Metascan installation folder>\Mongo\64+ (e.g. C:\Program Files (x86)\OPSWAT\Metadefender Core 4\Mongo\64+).

  3. Run the following command:

    mongorestore.exe --host localhost --port 27018 --db metascan --collection files <path>

    Replace <path> with the full filepath of the previously exported files.bson file (your scan database export). See https://docs.mongodb.com/manual/reference/program/mongorestore/#bin.mongorestore for more information about mongorestore.exe