Check right side exists before running job

English Support for Syncovery on Windows.
Post Reply
IMTheNachoMan
Posts: 86
Joined: Sun Nov 20, 2022 5:11 am

Check right side exists before running job

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

IMTheNachoMan
Posts: 86
Joined: Sun Nov 20, 2022 5:11 am

Re: Check right side exists before running job

Post by IMTheNachoMan »

Anyone?

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

Re: Check right side exists before running job

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

IMTheNachoMan
Posts: 86
Joined: Sun Nov 20, 2022 5:11 am

Re: Check right side exists before running job

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

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

Re: Check right side exists before running job

Post by tobias »

Hello,
I think scheduled + script is better.

IMTheNachoMan
Posts: 86
Joined: Sun Nov 20, 2022 5:11 am

Re: Check right side exists before running job

Post by IMTheNachoMan »

Great. Thank you!

Post Reply