The following section explains how to export a task using either the Qlik Replicate Console or the command line.
To export a task using the Qlik Replicate Console:
- Switch to Tasks view (make sure you're in Designer mode).
Do one of the following:
In TASKS tab, select the task you want to export and then either click the Export toolbar button or right-click the task and select Export.
- In the TASK_NAME tab (opened when a task is being edited), click the Export Task toolbar button.
Depending on your browser settings, one of the following will occur:
- The task JSON file will be automatically downloaded to the default download location
- You will be prompted for a download location. In this case, save the JSON file to your preferred location.
To export a task using the command line:
From the Qlik Replicate computer where you defined the task you want to import, open the Qlik Replicate command line console by doing the following:
On Windows: Go to All Programs in the Start menu and point to Qlik Replicate, then to Utilities and then select Qlik Replicate Command Line.
A command-line console is displayed with the correct prompt for Qlik Replicate.Information note
You can also open the Windows command-line console and change the directory to the following:
<Qlik Replicate Installation Directory>\bin
For example, to use the path to the folder or directory where Qlik Replicate is installed by default, type: C:\Program Files\Attunity\Replicate\bin.
On Linux: Run the following command in the Replicatebin directory:
At the prompt in the command-line console, type the following:
repctl -d data-directory exportrepository task=task_name[folder_name=path]
By default, a file called <task_name>.json containing the exported task settings is created in the <product_dir>\data\imports folder. If you want the file to be created in a different folder, include the folder_name=path parameter in the command.
After the file has been created, you can import it into another Qlik Replicate instance as described in Importing tasks.Information note
If the <product_dir>\data folder was installed in a non-default location during the installation - OR - if it was later moved to a non-default location, you need to tell Replicate where the folder is located.
This is done by including the -d <data_folder> parameter in the command.
repctl -d D:\Data exportrepository task=mytask