Profile to start after another is successfully finished

For technical support visit http://support.2brightsparks.com/
fabricio.santos
Newbie
Newbie
Posts: 1
Joined: Thu Oct 12, 2017 10:28 pm

Profile to start after another is successfully finished

Postby fabricio.santos » Thu Oct 12, 2017 10:40 pm

Dear all,

Is it possible to configure a profile to be executed only after another one was completed successfully?

Thank you,

Fabrício

cliffhanger
Expert
Expert
Posts: 753
Joined: Tue May 31, 2011 5:59 pm

Re: Profile to start after another is successfully finished

Postby cliffhanger » Sat Oct 14, 2017 9:03 am

Not as a 'clickable option', no. But you can do it by chaining Profile-2 to be executed via Programs-Before > After of Profile-1, so that after Profile-1 completes, the Programs-Before > After setting in Profile-1 will execute Profile-2 by calling it on the command-line*. Programs-Before > After has a default setting which will abort running the command (to trigger Profile-2) if Profile-1 fails with any error. Of course, you need to ensure you do not enable the override setting "Run the program even if the profile fails", or you will neatly defeat your objective.

Note that doing this will launch a separate copy of SB to run Profile-2 (and that separate SB copy will close after completing that run). One more copy of SB in memory temporarily is unlikely to cause you problems, but it's not recommended to chain numerous multiple profiles this way. You can also chain a Group (e.g. to run Profile-2/3/4, by making/calling a Group to do just that) after Profile-1 has completed successfully, but you can't use this method to run profile-4 after a Group of profiles-(e.g. 1/2/3) all complete without error, because there is no Programs-Before > After section in a Group.


* tip to generate a correctly formatted command-line for use in Programs-Before > After: make a shortcut to Profile-2 (drag the 2nd profile to the desktop to create one); right-click shortcut > Properties, and Copy the internal command-string to the clipboard; switch back to SB > Modify view of Profile-1 and Paste the string into the edit box of Programs-Before > After. After successful testing, you can delete or retain the shortcut as you prefer. This tip also works with a Group.

cliffhanger
Expert
Expert
Posts: 753
Joined: Tue May 31, 2011 5:59 pm

Re: Profile to start after another is successfully finished

Postby cliffhanger » Sat Oct 14, 2017 9:10 am

Note: any chained profile (or Group) will by default run Unattended unless you edit the command-string to use CLI switches to modify that default behavior. Details in Help under Command Line Parameters (first few entries)


Return to “SyncBackSE (commercial)”



Who is online

Users browsing this forum: No registered users and 3 guests