# Migrations

## &#x20;Database only

1. Backup *Qommentary Database* using pgadmin tool
2. Restore *Qommentary Database* in the new Database server
3. Go to the *Qommentary Engine* folder
4. Open the appsettings.json
5. Update the "ConnectionStrings" > “Qommentary” entry with the new connectionstring
6. Restart Qommentary Engine application pool in IIS

*Example of the **appsetting.json** entry*

```json
"ConnectionStrings": {
    "Qommentary": "zKA40nbrJzFIzu1kXecgP45n1d1f9beA6MBvieX99UUmFMQxc2lpem8x6hV+TNDjgOa3+lvLJAie3Qnl+KbBxghI58LF4DgEHbZdqEpLIVoCIbOA9eFwpGUMXOzNbmTfQTD+LpHUEktCoIW6d7mQI4b2YJKcYy448rVGJk7K0fbbg8n"
}
```

{% hint style="warning" %}
You will have to use the [DB Connection Utility](/utilities/db-connection-manager.md) to encrypt your new connectionstring before updating this entry
{% endhint %}

## Admin Console and Engine only

1. Install Qommentary on the new environment using the Qommentary Setup Wizard. In the database step, connect to existing database and provide the details related to the existing Qommentary Database.
2. Re-install the Qlik Sense Client certificate in the new environment
3. Re-bind the SSL certificate to the Qommentary Manager/Engine sites (if applicable)
4. Check that the Qommentary Manager/Engine hostnames are whitelisted in the virtual proxy list in the Qlik Management Console (QMC)
5. Update all Qommentary extensions configurations via Qlik dev-hub if the new environment is using different endpoint URLs.

{% hint style="info" %}
For more information please check [Prerequisites](/getting-started/prerequisites.md) and [Installing](/getting-started/installation.md) sections
{% endhint %}

## Database, Admin Console and Engine

This scenario is a combination of the previous sections, so please begin with the "Database only" steps and then proceed with the "Admin console and Engine only" steps.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://knowledgebase.qommentary.com/platform-architecture/migrations.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
