Administration
...
Updating Passwork components
MongoDB

Debian

14min
  • 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

This page uses switchable code blocks to provide instructions for different operating systems

Creating a backup

Create a directory:

shell


Create a backup:

shell


Removing the older version

Stop the service:

shell


Move the configuration file:

shell


Remove the database with configuration files:

shell


Delete directory with log files:

shell


Delete MongoDB data files:

shell


Remove deprecated repository for MongoDB 4.x:

shell


Update the list of available packages:

shell


Installing MondoDB

Download and add the MongoDB GPG key:

Debian 11
Debian 12


Add MongoDB repository to the file:

Debian 11
Debian 12


Update the list of available packages:

shell


Install the database and administration utilities:

shell


Start the mongod.service:

shell


Enable autostart of the service:

shell


Perform a shell connection check:

shell


Restoring the backup

If the connection to the shell is up, restore the databases from the backup:

shell


If any parameter changes were made to the MongoDB configuration file (mongod.conf), you must replace the new file with the old one:

shell


Restart the mongod.service:

shell


And open Passwork to verify that everything was done correctly.

Updated 24 Dec 2024
Doc contributor
Doc contributor
Did this page help you?