Before posting, and to avoid disappointment, please read the following:

  • This forum is not for 2BrightSparks to provide technical support. It's primarily for users to help other users. Do not expect 2BrightSparks to answer any question posted to this forum.
  • If you find a bug in any of our software, please submit a support ticket. It does not matter if you are using our freeware, a beta version or you haven't yet purchased the software. We want to know about any and all bugs so we can fix them as soon as possible. We usually need more information and details from you to reproduce bugs and that is better done via a support ticket and not this forum.

Is possible configure jobs dependency?

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

Is possible configure jobs dependency?

Post by CoreTech »


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.

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

Re: Is possible configure jobs dependency?

Post by Conrad Chung »

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.
Post Reply