Database upgrade

In order to upgrade the MongoDB instance deployed as a docker image alongside MDSS, up to version 6.0, the desired version can be set in docker-compose.main.linux.yml and the upgrade performed using the flag -u upgrade_db.

Before performing the upgrade, make sure that the host is compatible with the latest platform requirements for MongoDB: [https://www.mongodb.com/docs/manual/administration/production-notes/#x86_64](https://www.mongodb.com/docs/manual/administration/production-notes/#x86_64)

This process should not be performed when using an external database, in this case the upgrade should be performed manually following the MongoDB provider documentation.

  • The mongodb section in docker-compose.main.linux.yml should look like this if upgrading to v6.0:
YAML
Copy

Linux example

  • Edit the following file: /etc/mdss/docker-compose.main.linux.yml
  • Run the upgrade command: mdss -u upgrade_db

Windows example

  • Edit the following file: C:\Program Files\OPSWAT\MetaDefender for Secure Storage\docker\docker-compose.main.linux.yml
  • Run the upgrade command from the installation directory (C:\Program Files\OPSWAT\MetaDefender for Secure Storage\docker): .\mdss.ps1 -u upgrade_db
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard