Is possible configure jobs dependency?

2BrightSparks company news and announcements
CoreTech
Newbie
Newbie
Posts: 1
Joined: Tue May 27, 2014 11:59 am

Is possible configure jobs dependency?

Postby CoreTech » Tue May 27, 2014 12:38 pm

Hello,

I need to configure syncback to replace a sync script in use.
The script to be replace is based on robocopy command.
Below an example of the script:

net stop service1
net stop service1

net use X: \\x.x.x.x\c$
net use Z: \\x.x.x.x\e$

robocopy "C:\folder_A" "X:\folder_A" /MIR /R:1 /W:1
robocopy "C:\folder_B" "X:\folder_B" /MIR /R:1 /W:1
robocopy "E:" "Z:" /MIR /R:1 /W:1

net use X: /delete
net use Z: /delete

net start service2
net start service1

I've created a dedicate bat file for the stop of the services + map the network drive, and another to start the services and delete the drive mapped before. And I use these two script in the function "program before" and "after" of the sync job.
With syncback I can create many jobs for each robocopy string, but I've the problem that services must be start only when the last sync is finished.
Is it possble create dependency between the jobs?
If this were possible, I could configure the startup of the job only when the previous is completed, and leave for last (in the dependence chain) the job with the bat file configured for start the services.

Claudio

Conrad Chung
2BrightSparks Staff
2BrightSparks Staff
Posts: 588
Joined: Thu Dec 05, 2013 3:01 pm

Re: Is possible configure jobs dependency?

Postby Conrad Chung » Wed May 28, 2014 7:59 am

Hi, I don't understand your question when you say "create dependency between the jobs". Do you mean to say you want to daisy-chain the profile jobs so that they run one after another in sequence?

If so, you can create a Group Profile using the Create Profile Wizard and then select the profiles you want to include into this group. Profiles will be run in the order you arrange them during setup and each profile will be run sequentially.

BTW, you have posted in the wrong section. This is News and Announcements. You should post your questions in the appropriate SyncBack product model that you are using.


Return to “News and Announcements”



Who is online

Users browsing this forum: No registered users and 1 guest