-
Upgrade applications to use the latest Mongo Driver and then test applications to make sure they work using the latest version of driver with old database version.
-
Shutdown Mongod:
> db.shutdownServer()
-
Verify that the service actually stopped using:
$ sudo service mongodb status
-
Create a backup copy of all databases
$ sudo cp –vrp /media/data/mongodb /media/data/mongodb-backup
-
Update apt-get package cache:
$ sudo apt-get update
-
Upgrade Mongo DB
$ sudo apt-get install mongodb-10gen
-
The service should restart automatically.
-
Verify that the service actually started using:
$ sudo service mongodb status
-
Sign into the mongo console and verify that you are on the version that you expect.
> db.version()
-
Make sure any services that may have been querying the database have been restarted.
-
Set a reminder to delete your backup after a few days.
-
Upgrade your local copies of Mongo DB on your dev machine so you are on the same version.
Last active
December 21, 2015 23:48
-
-
Save pagebrooks/6384469 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment