How to BackUp and Restore Qlik NPrinting Repository Database from End to End
! Note: Do NOT modify the NPrinting Database for any reason using PG Admin postres query or any other execution tools as this will damage your NPrinting Deployment and prevent successful NPrinting Database backup and restore operations.
! Note: Do NOT restore an older version of an NPrinting Database to a New NPrinting server or restore a newer version of the NPrinting database to an older version of NPrinting Server.
NP 220.127.116.11 to NP 18.104.22.168 This is OK
NP 22.214.171.124 to NP 126.96.36.199 NOT OK This will compromise your deployment of NPrinting
NP 188.8.131.52 to NP 184.108.40.206 NOT OK This will compromise your deployment of NPrinting
These rules apply to general releases and service releases: The point version of the NPrinting Database being restored must match the point version of NPrinting Server being restored to.
! Note: If you are making a backup for the Qlik Support team, please add the following NPrinting user information so that we can log onto the NPrinting Web Console following the local restore of the database (also ensure that NPrinting Authentication is enabled. Go to Admin > Settings > Authentication
This procedure is meant to backup and restore (partial backup and restore of these individual items is not possible*):
NP Web Console Items:
*Reports (can separately be exportable/importable however only and exclusively between identical versions of NPrinting. See Related Content section link below)
Conditions and most settings applied to an existing system
NP Backup zip File Contents (do NOT open and modify the contents of this file):
A dump of the NPrinting database repository
All files used by report templates
All files related to reports published on the NewsStand
All files related to On Demand reports
The backup file size can be 'roughly' estimated by enumerating the size of the folder "c:\programdata\nprinting\apps"
NOTE: Settings that are not backed up or restored are documented below.
Do not unzip the backup file (np_backup.zip), simply copy it to
Before Proceeding: Please log on as the NPrinting service account used to run the NPrinting Web Engine and Scheduler services before proceeding
The video below makes no mention of the Qlik NPrinting License Service which was included on newer versions. It also needs to be stopped as documented below.
If restoring to a different NPrinting server environment, see step 7 below for additional consideration not covered in the video below.
1. Stop only the following Qlik NPrinting services (do NOT stop any other services)
Open the Windows Service Manager (services.msc), and stop the following services (by right-clicking them, and then clicking Stop). This will ensure any manual or scheduled NPrinting Publish Tasks are not executed during the backup or restore process:
Qlik NPrinting Engine Service
Qlik NPrinting Audit Service
Qlik NPrinting License Service
Qlik NPrinting Scheduler Service
Qlik NPrinting WebEngine Service
2. Create a folder for the backup in:
3. Open Command prompt and change directory path
Do NOT modify any syntax or add any additional unnecessary spaces Open the command prompt making sure to run cmd.exe as Administrator and change directory as follows:
cd C:\Program Files\NPrintingServer\Tools\Manager
Copy and paste the following backup syntax to the command prompt console. Replace superuserDBpassword with your password first used when installing NPrinting.
Keep in mind: You may safely ignore any restore 'error' messages found in the nprinting_manager.log file as seen below.
File C:\Users\domainuser\AppData\Local\Temp\2\nprintingrestore_20201203082300\files\xxxxxxxxxxxxxxxxxxxxxxxxxxxx does not exist in the source backup package.
These are references to NPrinting Apps/Connections/Reports that once existed and have been subsequently deleted from the NPrinting Web Console.
For example, A report/connection/NP App may have been deemed retired, then manually deleted by a user with appropriate NP role permissions since it no longer served any specific purpose.
6. Start all NPrinting server services that were stopped earlier.
! Note: The following services should not have been stopped during the backup and restore process:
NP Repo Service
NP messaging service
7. If restoring to a different NPrinting server environment, once the restore to the Target/Destination server is complete you will need to update the following applicable settings in the NP Web Console on the Target/destination server that the NP database has been restored to:
Sept 2019 and earlier NPrinting versions: Update the NP Engine in the Engine Manager via the NPrinting Web Console. Add the name of the new NP Engine Computer name here and disable or delete the original NP Engine entry.