windows to windows sync

Advertisement

jgionet76
Joined:
Posts:
2
Location:
Ontario, Canada

windows to windows sync

Hi,

I'm just getting started in scripting using winscp. (version 4.3.8 Build 1771)

I'm been trying to write a script that'll sync all my remote files with my local files. So far I haven't had much luck.

Here is my script:

option batch off
option confirm off

# Connect - format: user:password@host 
open myusername:mysecretpassword@www.myproductionserver.something 

synchronize remote -delete -mirror -nopermissions "S:\webs\staging.myserver.something\htdocs\mysubfolder" "/D:/web/roots/proweb19/wwwroot/asubfolder/mysubfolder"

# Disconnect 
close 

# Exit WinSCP 
exit

Now I'll place a TXT file in the mysubfolder of my LOCAL server and the file NEVER makes its way to the remote server.

I've tried the above command, plus tried taking out -mirror and -nopermission and still no luck.

When I use the GUI all of this works like a charm.

I've attached my log file.

Thanks
Description: log file

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum