Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
We have about 50+ tasks running in production. In order to backup each tasks, we have to right click a task --> Export Task --> Save the file into a JSON.
Is there a way to backup all these 50+ tasks into a zip file using either command line or GUI?
Thank you.
Desmond
Sure Just use the command line tool : REPCTL EXPORTREPOSITORY . It is well documented in the Replicate Userguide.
The same option to export all is available through the AEM API's but oddly enough(unforgivable?) not though it's UI best I can tell. I'll be happy to be proven wrong but I do not see it for AEM May 2023 (2023.5.0.130)
Are we able to restore one or two tasks if we backup using the REPCTL EXPORTREPOSITORY method? Do you have a pointer where to get details for AEM API? I hope they can build into the GUI. I checked on the AEM GUI only allow export endpoint/without endpoint for a single task.
Desmond
Hello @desmondchew ,
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.
Example: repctl -d <custom_data_directory> exportrepository task=task_name [folder_name=<path>]
Below link will help you to understand more.
Backing up or Exporting Tasks from Qlik Replicate - Qlik Community - 1909596
Hope above information is helpful.
Regards,
Sachin B
>> Are we able to restore one or two tasks if we backup using the REPCTL EXPORTREPOSITORY method?
The data is there, but you need a script or smart JSON aware editor like Notepad++ to extract the right parts or delete the unwanted. It's really not too hard to write an extract script, but I don't seem to currently have one. Send beer or money for beer and I may be able to whip something up. :-). Seriously just task an intern or fresh Replicate support person to take the challenge. Should be fun and useful!
Hein.