Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Backing up and Restoring using .bat files

  1. Download and unzip the GEOJobe-Products-MongoDB-Backup-Restore.zip file into a directory on the server.

  2. Extract the mongodb-database-tools-windows-x86_64-100.5.2 to a folder. These include the mongoimport and mongoexport commands.

  3. You will need to add the extracted directory to your PATH environment variable in order to access the mongoimport and mongoexport files:Example path: D:\MongoDB\mongodb-database-tools-windows-x86_64-100.5.2\bin

  4. In the command prompt, navigate to the extracted BMO-CMO-Backup-Restore directory and run at-export.bat, bmo-export.bat and/or cmo-export.bat for each product you own. If you have previously created your JSON collection files from another server, copy them into the /bmocollections and /cmocollections directories respectively instead of running the export file.

  5. Verify that the collections JSON in the /atcollections, /bmocollections, and/or /cmocollections directories have JSON files.

  6. Install your new MongoDB Community version.

  7. Run the at-import.bat, bmo-import.bat,and/or cmo-import.bat to restore the database collections respectively.

  8. Install the Admin Tools, BackupMyOrg and/or CleanMyOrg applications to their previous file locations if needed.

...