Versions Compared

Key

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

...

Connect to the old Mongo shell

Expandcode
expand...
titlethemeMidnight
C:\
Users\dkarch.SVA>mongo
mongo --host
bvqxxxx.xxxx.xx.de
 IPLOCALHOST --authenticationDatabase admin -u bvq -p P@ssw0rd
panel



show DB´s

borderColorblack
Code Block
theme
borderStylesolid

Image Removed

...

Midnight
> show dbs
> show dbs
Expand
titleexpand...
Panel
borderColorblack
borderStylesolid






exit the shell

Code Block
themeMidnight
> exit
> exit
Expand
titleexpand...
Panel
borderColorblack
borderStylesolid





...

start the backup, the time to complete this task is depending on the DB size


Expandcode
expand...
titlethemeMidnight
C:\Users\dkarch.SVA>mongodump --host 
bvqxxxx.xxxx.xx.de:27017 --db bvq
IPLOCALHOST --authenticationDatabase admin -u bvq -p P@ssw0rd --gzip -j 8 --out C:\Temp\test-backup
Expand
titleexpand...
Panel
borderColorblack
borderStylesolid




...

start the installation of the same Version of BVQ on the new VM

and stop right after the MongoDB has installed

Expand
titleexpand...
Panel
borderColorblack
borderStylesolid

...





  • Stop all BVQ services but "bvq-mongodb"
Image Removed
Expand
titleexpand...
Panel
borderColorblack
borderStylesolid
Services

Image Added


restore the DB

Expandcode
expand...
titlethemeMidnight
C:\Users\dkarch.SVA>mongorestore --host 
bvqxxxx.xxxx.xx.de:27017 --db bvq
IPLOCALHOST --authenticationDatabase admin -u bvq -p P@ssw0rd --gzip -j 8 --out C:\Temp\test-backup
\bvq


Expand
titleexpand...
Panel
borderColorblack
borderStylesolid

...