Quantcast
Channel: 2BrightSparks
Viewing all articles
Browse latest Browse all 9303

Is possible configure jobs dependency?

$
0
0
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

Viewing all articles
Browse latest Browse all 9303

Trending Articles