Database upgrade
This operation is not reversible and operates on a live DB. Please ensure a system backup before proceeding.
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.
Instructions upgrading MetaDefender Storage Security version 3.4.2 or newer
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 customer.env and the upgrade performed using the flag -u upgrade_db.
- The mongodb section in
customer.envshould look like this if upgrading to v6.0:
## Linux example
- Edit the following file:
/etc/mdss/customer.env - Modify
MONGO_TAG=3.6toMONGO_TAG=6.0 - Run the upgrade command:
mdss -u upgrade_db
Instructions upgrading MetaDefender Storage Security version 3.4.1 or earlier
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.
- The mongodb section in
docker-compose.main.linux.ymlshould look like this if upgrading to v6.0:
version'3'services mongodb platformlinux/amd64 image"mongo:6.0" volumesmongo_db:/data/dbLinux 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
