Page 1 of 1

Synchronise network folder

Posted: 16 Mar 2022 15:31
by Caz
Hi,
I am trying to setup a sync job through scripting. I have already setup such jobs succesfully but when trying to use a network folder as the target path I get an error "not a valid target path". Is this really not possible ?
Thanks for your help.

Edit: I also tried mapping the network folder as a drive in Windows (as a workaround) with no success

Re: Synchronise network folder

Posted: 16 Mar 2022 16:39
by highend
First, show the script...

Re: Synchronise network folder

Posted: 16 Mar 2022 16:42
by Caz
Just a "single" line.

Code: Select all

sync "C:\Users\Caz\Documents\Projects\",
        "\\share.enterprise.corp\Backup\Documents\Projects\",
        1,
        0,
        0,
        ,
        "\\share.enterprise.corp\Backup\Logs\<date yyyy-mm-dd>.txt" ;

Re: Synchronise network folder

Posted: 16 Mar 2022 16:52
by highend
Both the target and the logfile path must exist. Your target doesn't...

Re: Synchronise network folder

Posted: 16 Mar 2022 17:04
by Caz
Thanks highend ! That works.
I feel so dumb each time I ask a question here.