Restoring a site manually
This section describes how to restore a Qlik Sense site in a default installation where a PostgreSQL database is used as the repository database.
The procedure described in this section can also be performed using the Repository Snapshot Manager (RSM).
See: Using the Repository Snapshot Manager
Items to restore
The following items need to be considered when restoring a site:
- Qlik Sense software
- Repository database: The database contains all configuration data for the site.
- Certificates for the Qlik Sense services: The certificates are used to encrypt the traffic between the services and the users. Make sure to backup the certificates in order not to lose any encrypted data (for example, passwords for data connections).
- Log data
- Application data: The data models in the Qlik Sense apps.
- Any content that supports the apps (for example, QVD files)
Restore procedure
Proceed as follows to restore a Qlik Sense site:
- Install the Qlik Sense software on the machine targeted for the restore.
- Restore the certificates used to secure the Qlik Sense services.
- Start the Qlik Sense Repository Database (QRD).
- Restore the repository database:
- Place the backed up repository database on the machine targeted for the restore.
Open the Command Prompt in Microsoft Windows.
- Run the following commands to restore the repository database (adjust the paths as needed):
cd "C:\Program Files\Qlik\Sense\Repository\PostgreSQL\<database version>\bin"
createdb -h localhost -p 4432 -U postgres -T template0 QSR
pg_restore.exe -h localhost -p 4432 -U postgres -d QSR "c:\QSR_backup.tar"
If the command fails because a database already exists, run the following command and then repeat the createdb command:
dropdb -h localhost -p 4432 -U postgres QSR
- Restore the content to the following folders folder:
- %ProgramData%\Qlik\Sense\Apps
- %ProgramData%\Qlik\Sense\Repository\Content
- %ProgramData%\Qlik\Sense\Repository\Extensions
- %ProgramData%\Qlik\Sense\Log
- Restore any supporting content to its original location as required.
- If you are restoring a multi-node site, ensure the integrity of the site.
- Without resetting the rim nodes: On every rim node, connect to the QRS API and call the POST /qrs/sync/snapshot/restore endpoint without any parameters or body.
- By resetting the rim nodes: Wipe all rim nodes completely and re-add them back into your multi-node environment. The rim nodes will be up to date with your latest restore after the synchronization is complete.
- Start the Qlik Sense services. If the services are started manually, start them in the following order:
- Qlik Sense Repository Service (QRS)
- Qlik Sense Proxy Service (QPS), Qlik Sense Engine Service (QES), Qlik Sense Scheduler Service (QSS), Qlik Sense Printing Service (QPR), and Qlik Sense Service Dispatcher (QSD) in no specific order
See: Installing and upgrading Qlik Sense
This is needed as any new content on the rim nodes is not synchronized back to the central node upon restore, which may result in an inconsistent site.
There are two ways to ensure the integrity of the site:
The order is important because the QRS is dependent on the QRD and the rest of the services are dependent on the QRS.
Did this page help you?
If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!