Stop Syncovery profile from running with a before script

General Discussion in English
Post Reply
Efe_E
Posts: 12
Joined: Tue Mar 29, 2022 8:54 am

Stop Syncovery profile from running with a before script

Post 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?

tobias
Posts: 1603
Joined: Tue Mar 31, 2020 7:37 pm

Re: Stop Syncovery profile from running with a before script

Post by tobias »

Hello,
yes, if your script's exit code is not 0, the profile will not continue.

Efe_E
Posts: 12
Joined: Tue Mar 29, 2022 8:54 am

Re: Stop Syncovery profile from running with a before script

Post by Efe_E »

Brillant. That's worked!

Post Reply