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??

WilliamS Beginner Asked on January 7, 2020 in Diyotta Scheduler.
Add Comment
1 Answers

-> 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
Export:
dicmd export -u username -w password -p Project1 -o SCHEDULER -f Project1_scheduler.json

Import:
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
Export:
curl -o Project1_scheduler.json “https://dev.diyotta.com/diyotta-rest/export?project=Project1&objecttype=scheduler” -H “Authorization:XiQ5SPDEELEfcZl0f+f0BCxUExW4VuNLh0tytMrUj+4=”

Import:
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

Expert Answered on January 17, 2020.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.