Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi all,
Does anyone have the NPrinting backup script as a batch file that also produces a log file?
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.
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
HI,
I use this one:
and it generates simple log file as well