Skip to main content
Announcements
Defect acknowledgement with Nprinting Engine May 2022 SR2, please READ HERE
cancel
Showing results for 
Search instead for 
Did you mean: 
iLoveDataVis
Contributor II
Contributor II

Backup NPrinting script as a batch file (e.g. .BAT or Powershell) that also produces a log file?

Hi all,

Does anyone have the NPrinting backup script as a batch file that also produces a log file?

https://help.qlik.com/en-US/nprinting/February2021/Content/NPrinting/DeployingQVNprinting/Backing-up...

I would like the above backup process (e.g. stop the services, run the commands, log the messages in a file) in the above to be in a batch file.

We do not know how to write such a batch file so ask for help.

Reason being is then we can let Windows Task Scheduler run this task especially where the backups can take some time due to the size.

Thank you.

Labels (2)
2 Replies
AshutoshBhumkar
Partner - Specialist
Partner - Specialist

Hello,

You can refer below script for backup automation. (This wont generate a log file) but will take a site backup.

Put password in place of red highlighted * and check for the folder structure.

@Echo OFF
NET STOP "QlikNPrintingEngine" /y
NET STOP "QlikNPrintingScheduler" /y
NET STOP "QlikNPrintingWebEngine" /y


SET PGPASSWORD=*****
SET exec="C:\Program Files\NPrintingServer\Tools\Manager\Qlik.Nprinting.Manager.exe"
SET PGBIN="C:\Program Files\NPrintingServer\pgsql\bin"
%exec% backup -f "D:\backup\NPRINTING REPO BACKUP\QSR_NP_%date:~-4,4%%date:~-7,2%%date:~-10,2%_backup.zip" -p %PGBIN% --pg-password %PGPASSWORD%

 

NET START "QlikNPrintingWebEngine" /y
NET START "QlikNPrintingScheduler" /y
NET START "QlikNPrintingEngine" /y

 

Thanks,

Ashutosh

Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

HI,

I use this one:

https://community.qlik.com/t5/Qlik-NPrinting-Documents/Qlik-NPrinting-17-x-Repository-Backup-Batch-F...

and it generates simple log file as well

cheers Lech, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful to the problem.