Revision history [back]

click to hide/show revision 1
initial version

Hi Sean,

Yes. You can change MongoDB database location using the following steps in your Backup Server machine.

Windows:

  1. Stop VMBackup and Mongo Services in Services.msc
  2. Go to run->Open regedit (registry)
  3. Go to MongoDB Service and change the Imagepath with new dbpath(HKEYLOCALMACHINE -> SYSTEMS -> CurrentControlSet -> Services ->mongo Db).
  4. Copy the old data folders and paste it in new location(Most Important step).
  5. Start the Mongo and VMBackup Services.

Linux:

  1. Stop the VMBackup and Mongo Services. You can stop the services using below cmd:

/etc/init.d/mongo stop

/etc/init.d/vembuvmbackup stop

  1. Then open the Mongo config file using vi editor. Mongo config file can be found in /opt/config/mongodb.
  2. In that file, find dbpath. Then, update the new location accordingly.
  3. Copy the old data folders and paste it in new location(Most Important step).
  4. Start the Mongo and Vembu VMBackup Services.

Please be noted that the above steps are only to change database location and not the installation location of MongoDB.

click to hide/show revision 2
No.2 Revision

Hi Sean,

Yes. You can change MongoDB database location using the following steps in your Backup Server machine.

Windows:

  1. Stop VMBackup and Mongo Services in Services.msc
  2. Go to run->Open regedit (registry)
  3. Go to MongoDB Service and change the Imagepath with new dbpath(HKEYLOCALMACHINE -> SYSTEMS -> CurrentControlSet -> Services ->mongo Db).
  4. Copy the old data folders and paste it in new location(Most Important step).
  5. Start the Mongo and VMBackup Services.

Linux:

  1. Stop the VMBackup and Mongo Services. You can stop the services using below cmd:

/etc/init.d/mongo stop

/etc/init.d/vembuvmbackup stop

  1. Then open the Mongo config file using vi editor. Mongo config file can be found in /opt/config/mongodb.
  2. In that file, find dbpath. Then, update the new location accordingly.
  3. Copy the old data folders and paste it in new location(Most Important step).
  4. Start the Mongo and Vembu VMBackup Services.

Please be noted that the above steps are only to change database location and not the installation location of MongoDB.

click to hide/show revision 3
No.3 Revision

Hi Sean,

Yes. You can change MongoDB database location using the following steps in your Backup Server machine.

Windows:

  1. Stop VMBackup and Mongo Services in Services.msc
  2. Go to run->Open regedit (registry)
  3. Go to MongoDB Service and change the Imagepath with new dbpath(HKEYLOCALMACHINE -> SYSTEMS -> CurrentControlSet -> Services ->mongo Db).
  4. Copy the old data folders and paste it in new location(Most Important step).
  5. Start the Mongo and VMBackup Services.

Linux:

  1. Stop the VMBackup and Mongo Services. You can stop the services using below cmd:

/etc/init.d/mongo stop

/etc/init.d/vembuvmbackup stop

  1. Then open the Mongo config file using vi editor. Mongo config file can be found in /opt/config/mongodb.
  2. In that file, find dbpath. Then, update the new location accordingly.
  3. Copy the old data folders and paste it in new location(Most Important step).
  4. Start the Mongo and Vembu VMBackup Services.

Please be noted that the above steps are only to change database location and not the installation location of MongoDB.

click to hide/show revision 4
No.4 Revision

Hi Sean,

Yes. You can change MongoDB database location using the following steps in your Backup Server machine.

Windows:

  1. Stop VMBackup and Mongo Services in Services.msc
  2. Go to run->Open regedit (registry)
  3. Go to MongoDB Service and change the Imagepath with new dbpath(HKEYLOCALMACHINE -> SYSTEMS -> CurrentControlSet -> Services ->mongo Db).
  4. Copy the old data folders and paste it in new location(Most Important step).
  5. Start the Mongo and VMBackup Services.

Linux:

  1. Stop the VMBackup and Mongo Services. You can stop the services using below cmd:

/etc/init.d/mongo stop

/etc/init.d/vembuvmbackup stop

  1. Then open the Mongo config file using vi editor. Mongo config file can be found in /opt/config/mongodb.
  2. In that file, find dbpath. Then, update the new location accordingly.
  3. Copy the old data folders and paste it in new location(Most Important step).
  4. Start the Mongo and Vembu VMBackup Services.

Please be noted that the above steps are only to change database location and not the installation location of MongoDB.

click to hide/show revision 5
No.5 Revision

Hi Sean,

Yes. You can change MongoDB database location using the following steps in your Backup Server machine.

Windows:

  1. Stop VMBackup and Mongo Services in Services.msc
  2. Go to run->Open regedit (registry)
  3. Go to MongoDB Service and change the Imagepath with new dbpath(HKEYLOCALMACHINE -> SYSTEMS -> CurrentControlSet -> Services ->mongo Db).
  4. Copy the old data folders and paste it in new location(Most Important step).
  5. Start the Mongo and VMBackup Services.

Linux:

  1. Stop the VMBackup and Mongo Services. You can stop the services using below cmd:

/etc/init.d/mongo stop

/etc/init.d/vembuvmbackup stop

  1. Then open the Mongo config file using vi editor. Mongo config file can be found in /opt/config/mongodb.
  2. In that file, find dbpath. Then, update the new location accordingly.
  3. Copy the old data folders and paste it in new location(Most Important step).
  4. Start the Mongo and Vembu VMBackup Services.

Please be noted that the above steps are only to change database location and not the installation location of MongoDB.

click to hide/show revision 6
No.6 Revision

Hi Sean,

Yes. You can change MongoDB database location using the following steps in your Backup Server machine.

Windows:

  1. Stop VMBackup and Mongo Services in Services.msc
  2. Go to run->Open regedit (registry)
  3. Go to MongoDB Service and change the Imagepath with new dbpath(HKEYLOCALMACHINE -> SYSTEMS -> CurrentControlSet -> Services ->mongo Db).
  4. Copy the old data folders and paste it in new location(Most Important step).
  5. Start the Mongo and VMBackup Services.

Linux:

  1. Stop the VMBackup and Mongo Services. You can stop the services using below cmd:

/etc/init.d/mongo stop

/etc/init.d/vembuvmbackup stop

  1. Then open the Mongo config file using vi editor. Mongo config file can be found in /opt/config/mongodb.
  2. In that file, find dbpath. Then, update the new location accordingly.
  3. Copy the old data folders and paste it in new location(Most Important step).
  4. Start the Mongo and Vembu VMBackup Services.

Please be noted that the above steps are only to change database location and not the installation location of MongoDB.

Copyright © Vembu Technologies 2020. All Rights Reserved.