Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Jul 8, 2024 5:58:33 AM
Oct 19, 2017 9:47:06 PM
This article contains steps on how to do backup and restore the Qlik Sense Enterprise on Windows (QSEoW) site.
For full instructions on how to backup and restore a Qlik Sense site, see the online help under Backup and restore Qlik Sense Enterprise on Windows.
For sole database backup information article can be found here: How to backup PostgreSQL database in Qlik Sense
Backup and Restore Targets:
These steps are provided as-is based on latest version available of Qlik Sense product at the time of writing and/or last update to the article. Please make sure to cross-reference these steps with the official documentation for your product version under Backup and restore Qlik Sense Enterprise on Windows.
Downtime is required
cd "C:\Program Files\Qlik\Sense\Repository\PostgreSQL\9.6\bin"
.\pg_dump.exe -h localhost -p 4432 -U postgres -b -F t -f "c:\backup\QSR_backup.tar" QSR
cd "C:\Program Files\Qlik\Sense\Repository\PostgreSQL\9.6\bin"
.\dropdb.exe -h localhost -p 4432 -U postgres QSR
.\createdb.exe -h localhost -p 4432 -U postgres -T template0 QSR
.\pg_restore.exe -h localhost -p 4432 -U postgres -d QSR "c:\backup\QSR_backup.tar"
For further reference, consult the Qlik Sense Help Site for your respective version.
cd "C:\Program Files\Qlik\Sense\Repository\PostgreSQL\9.6\bin"
.\dropdb.exe -h localhost -p 4432 -U postgres QSR
.\createdb.exe -h localhost -p 4432 -U postgres -T template0 QSR
.\pg_restore.exe -h localhost -p 4432 -U postgres -d QSR "c:\Backup\QSR_backup.tar"
cd "C:\Program Files\Qlik\Sense\Repository"
.\repository.exe -standalone -restorehostname
Please refer to the Backing up Certificates Help site documentation for details and verify that the information matches your current version.
Please refer to the Restoring certificates Help site documentation for details and verify that the information matches your current version.
Normally, It is similar to the section for apps, the path where these files live is in the StaticContent folder on the Share path.
Restoring a Qlik Sense site to a machine with a different hostname
We are trying to test the backup and restore of Qlik Sense server (onto a different box) for our organization.
Qlik Sense version: Feb 2020 Patch 2
Source: dev1623
Target: dev123
Trying to restore from one host to another - all OS parameters remain same.
1. Took a backup of QSR from source
2. Installed Qlik Sense manually, installed patch (ensured "start services" is deselected).
3. On the target, dropped existing QSR, created a new one, and loaded the backed up QSR from source.
Stuck at step K now:
K. Change directory to the Repository installation folder and start the repository service with the two distinct commands:
cd "C:\Program Files\Qlik\Sense\Repository"
repository.exe -standalone -restorehostname
I did the same on my target box - dev123. There was some CPU activity on repository service, and then all went silent. The Repository Service under Windows services did not start.
I overlooked that, and went ahead with step L.
L. If a new share path is going to be used then, open QlikSenseUtil.exe (default location C:\Program Files\Qlik\Sense\Repository\Util\QlikSenseUtil\)
Click Connect to database and enter valid credentials for the postrgres or qliksenserepository user
It did connect to database, but when i had "connection checker" button selected, and then clicked on "OK" below, it failed at connecting.
Am I missing something? Help please.
Hello @sri_c003
The messages in the screencap seem to indicate a connection error on the listed ports to the listed machine/IP address. Are the relevant services online and are certificates available?
As this guide was originally written for 2017, I'd recommend the Help link for your version for review as well: Restoring a Qlik Sense Site. Make sure to select your version, though I believe nothing changed between Feb 2020 and Jun 2020.
If you require more assistance with this I would recommend posting your query on the Qlik Sense Deployment forum to get more visibility for the question.
Second issue noticed in Feb 2020 P2:
K. Change directory to the Repository installation folder and start the repository service with the two distinct commands:
cd "C:\Program Files\Qlik\Sense\Repository"
repository.exe -standalone -restorehostname
I did the same on my target box - dev123. There was some CPU activity on repository service, and then all went silent. The Repository Service under Windows services did not start.
The only way out of this was to use the repository.exe -standalone -restorehostname -bootstrap and start the dispatcher service when it is waiting at main. Not sure if this is the correct process or not to use the -bootstrap option but this is the only way it worked.
I wish there was an option to edit the comment posted, atleast within a few minutes.
Deleting earlier comment and updating it here.
The target box is one of our frequently used Qlik boxes. I merely removed all traces of existing Qlik and repurposed it as the target for DR testing. All ports are open and certificates are available.
Infact, I was able to get to the QMC and hub, and also open a few apps. But what is failing still is accessing the database from a tool like above.
From what I noted, after a fresh/clean install of Qlik Sense with "start services" deselected, this issue occurs.
No services started after a clean install; started the Repository Database - fails to connect.
No services started after a clean install; started the Repository Database, followed steps to restore Qlik Sense QSR database from Source, started all services - fails to connect.
This works though when I select "start services" on installation process.
Below is the message I see when trying to connect via a 3rd party tool. The tool connects with no issues on Qlik Sense installation with "start services" selected.
Issue created on the link mentioned above
Hi Team, I was able to go till version folder(9.6), after that not able to see bin folder. Is there any specific reason for not able to see bin folder?
Hello @muthukrishnabalaji
The \bin folder will exist in this location (or Postgres would not function): C:\Program Files\Qlik\Sense\Repository\PostgreSQL\12.5\bin (in my example I use 12.5)
There is, however, no \bin folder in the ProgramData folder (I know I sometimes went there by accident and got confused where it went): C:\ProgramData\Qlik\Sense\Repository\PostgreSQL\12.5
All the best,
Sonja
Hi all, thanks for response. In our server it is installed in different drive(F:). I can see bin folder there.
Hi, I successfully restored a Sense site to a new server, but some of the streams are missing -- they're not visible in the QMC or in the QSR "Streams" table. Everything else appears to be present. What's my best course of action?
I'd recommend referencing the information in the below case; I had to apply the query to all four DBs in my new postgres immediately after restoring them.