About the migration script

The upgrade_mongo.sh script automates the database migration process to ensure that you do not lose data during the upgrade. When you execute the script, it automatically performs the following sequence of steps:
  1. Extracts a temporary Java environment.
  2. Performs a pre-upgrade backup of your existing MongoDB container and data.
  3. Moves the data to the installation folder.
  4. Patches the configuration and installation files.
  5. Restores the data to the target MongoDB version.
  6. Performs a final cleanup of the temporary backup files.