Page 1 of 1

Stop Syncovery profile from running with a before script

Posted: Fri Mar 10, 2023 9:27 am
by Efe_E
Hi,

I was wondering if there is a way to prevent a profile from running if a certain condition is met in the the Before script. For my example, we have a file that is generated by a 3rd party each day and placed on a network share each morning. I have a Before script that formats that file before Syncovery moves it to a specific destination.

If the file isn't generated by the 3rd party, I would like the Syncovery file move (and After script) to not run and use the current logic in my Before script to alert the relevant teams that the file hasn't been generated.

Is this possible in Syncovery?

Re: Stop Syncovery profile from running with a before script

Posted: Fri Mar 10, 2023 3:31 pm
by tobias
Hello,
yes, if your script's exit code is not 0, the profile will not continue.

Re: Stop Syncovery profile from running with a before script

Posted: Tue Mar 14, 2023 10:01 am
by Efe_E
Brillant. That's worked!