Windows Server
- If a replication suite is used, please contact Passwork technical support to update and save data correctly
- If Passwork is installed on a virtual server, we recommend creating a snapshot before updating
By default MongoDB administration utilities are not located in the $PATH environment variable, to use it you need to search for utilities using PowerShell.
Run PowerShell as Administrator:
- Right-click on the Start icon in the lower left corner of the screen;
- Select Windows PowerShell (Administrator) from the context menu.
Perform a search for administration utilities:
If MongoDB and the administration utilities were installed on a non-standard drive, you need to change the search path in the -Path parameter
The current working directory will be changed to the one in which the utilities are located. To test it, execute:
Create directory:
Create a backup:
The mongodump and mongorestore utilities are located in the same MongoDB 4.x installation directory.
Stop the service:
Delete the database:
Delete the directory with the contents of the database:
Perform a search for MongoDB in the registry:
Delete an entry from the registry:
Download MongoDB installer:
In case of an error, you can download the installer manually
Install MongoDB by default:
To install MongoDB on another drive, you need to add — "INSTALLLOCATION=A:\MongoDB"
Create a directory for the MongoDB administration utilities:
Download administration utilities:
In case of an error, you can download the installer manually
Extract the contents:
Perform a shell connection check:
If the connection to the shell is up, restore the databases from the backup:
And open Passwork to verify that everything was done correctly.