RE: I tried to import the Project into the scheduler using UI Import option, It is taking longer time to import
I have many tasks and task group present in a project, I’m trying to migrate these jobs from one project to another project. As part of the Import Process it is taking longer time is there any other way to do this in order to overcome the latency??
-> Apart from UI Export and Import, Diyotta has CLI (dicmd) and Rest CURL commands to perform these operations.
(Note: CLI (dicmd) and Rest CURL Commands are preferable for bulk export and import.)
-> Below is the example to Export entire scheduler from “Project1” and import it into “Project2” using CLI (dicmd) command
dicmd export -u username -w password -p Project1 -o SCHEDULER -f Project1_scheduler.json
dicmd import -u username -w password -p Project2 -f Project1_scheduler.json
-> Below is the example to Export entire scheduler from “Project1” and import it into “Project2” using REST CURL command
curl -o Project1_scheduler.json “https://dev.diyotta.com/diyotta-rest/export?project=Project1&objecttype=scheduler” -H “Authorization:XiQ5SPDEELEfcZl0f+f0BCxUExW4VuNLh0tytMrUj+4=”
curl -X POST -H “Content-Type: multipart/form-data” -F “file=@/app/cqacert/Project1_scheduler.json” “https://dev.diyotta.com/diyotta-rest/import?project=Project2” -H “Authorization:XiQ5SPDEELEfcZl0f+f0BCxUExW4VuNLh0tytMrUj+4=”
Note: Authorization key can be generate using below CLI Command,
dicmd passwd -e username:password