Can tasks be exported from Qlik Replicate or is a full ~\data backup required?
You can export all or individual tasks with repctl exportrepository.
To export tasks using the command line:
On the Qlik Replicatehost where you want to export the task, open the Start menu and expand Qlik Replicate, then select Qlik Replicate Command Line
You can also open the Windows command-line console and change the directory to <product_dir>\Attunity Replicate>\bin
Run the following command:
repctl connect
To export tasks:
For exporting all tasks, run: repctl exportrepository For exporting a specific task, run: repctl exportrepository task=”task:name”
Modify either command if you use a custom data directory. Example: repctl -d <custom_data_directory> exportrepository task=task_name
By default, the repository will be exported to the Qlik Replicate directory /imports. In case you want it to be somewhere else, specify the path by adding: folder_name=path at the end of the command.
The information in this article is provided as-is and to be used at own discretion. Depending on tool(s) used, customization(s), and/or other factors ongoing support on the solution below may not be provided by Qlik Support.
One problem we ran into with task exports was keeping track of changes between versions. Reusing tasks involved hand-editing exported JSON, and our history depended on someone remembering to save a copy.
A useful next step after the export described here is to keep those definitions in Git: commit the current export before editing a task, then export again, review the diff and commit with a short explanation of why it changed. That gives the next person both the configuration and the reason behind it.
We built this workflow into Gitoqlok, a browser extension that connects Replicate tasks to Git. It lets us review changes made in the Replicate console before committing and restore a saved task definition as a full replacement.
Versioning task definitions complements full backup and recovery; the exported JSON does not preserve the task’s running state.