Page 1 of 1

Check right side exists before running job

Posted: Sun Feb 26, 2023 5:16 am
by IMTheNachoMan
I swear I have seen a setting for this but now I can't find it.

I am syncing folders on my desktop and laptop. The laptop has a network share that Syncovery, running on my desktop, connects to. So the network share (laptop) is my right hand side.

I have Syncovery set to run on schedule and RTS.

If the laptop is not on/available, I get emails saying "can't access right path".

Is there a way to have a job not run if the right hand side is not available?

Re: Check right side exists before running job

Posted: Tue Feb 28, 2023 3:16 am
by IMTheNachoMan
Anyone?

Re: Check right side exists before running job

Posted: Tue Feb 28, 2023 9:45 am
by tobias
Hello,

if you add no schedule and only use the checkmarks under "Monitoring/Realtime", then Syncovery will only start the job if the paths are accessible.

You can also avoid the e-mails with a PascalScript, please see

https://www.syncovery.com/pascalscript/

The script can be added globally via the Advanced tab sheet of the Program Settings dialog, or in the profile via the PascalScript checkmark on the Job tab sheet.

For example, similar to this:

Code: Select all

function OnSendEmail(const ProfileName:UnicodeString;
                    var TheSubject:UnicodeString;
                    var HighImportance,UseDigest:Boolean;
                    var ResultSummary:UnicodeString;
                    const SomethingWasDone,ErrorHasOccurred:Boolean;
                    const FailedPathsCommaText:UnicodeString;
                    const StartedAt,EndedAt:Double;
                    var RecipientsCommaText:UnicodeString;
                    var SenderName:UnicodeString;
                    var SenderEmail:UnicodeString):Boolean;
begin
  Result:=Pos('t access',TheSubject)=0;
  end;

Re: Check right side exists before running job

Posted: Wed Mar 01, 2023 2:40 am
by IMTheNachoMan
Will an only RTS profile work fine for a network sync like mine: Desktop <-> laptop?

Or am I better off keeping schedule and using the script to stop the emails?

Re: Check right side exists before running job

Posted: Wed Mar 01, 2023 10:28 am
by tobias
Hello,
I think scheduled + script is better.

Re: Check right side exists before running job

Posted: Wed Mar 01, 2023 7:03 pm
by IMTheNachoMan
Great. Thank you!