-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Copy Qlik Server #206
Comments
First: I am a huge fan of Qlik-Cli-Windows and use it daily in various shapes and forms. Absolutely awesome tool. But there are also more complex use cases that I have found difficult to automate using Qlik-Cli-Windows and/or Qlik's official Qlik CLI tool, especially when it comes to interacting with the Engine API. App export and (re-)import is one such feature. Again, I don't mean to steal the show from Adam's tool.. but if you're lazy like me, Ctrl-Q might be useful. By the way, a step-by-step instruction for doing the above is available in this blog post: |
Copying apps from one server to another can be done by exporting the apps and then importing them on the other server. To copy all apps and streams you would need to get a list of all streams and then use a loop or pipeline to create them on the target, the same can be done for apps using export and import commands. |
I'm back at it and have a working script for exporting and then importing apps. We have apps linking to each other by IDs, and having them remain is critical. |
To import an app with a specific ID you need to first place the QVF in the Apps directory of the cluster share and rename it to just the ID without any file extension, then you call POST the app metadata to the /qrs/app endpoint to create the reference in the repository. These steps should be completed in the order I mention them here, otherwise you will need to restart services before you can use the app. Assuming you read the app metadata using something like Invoke-QlikPost /qrs/app ($app | ConvertTo-Json -Depth 10) |
Is there a way to use qlik-cli-windows to copy apps / streams from one server to another? We have a test server that we want to run as a copy of our production server.
Today I'm just copying the QlikShare folder and the QDF.
The text was updated successfully, but these errors were encountered: