Topic "windows to windows sync"

Author Message
jgionet76
[View user's profile]

Joined: 2012-06-28
Posts: 2
Location: Ontario, Canada
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:

Code:
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
sync.log (6.22 KB) [Download]

Description: log file

jgionet76
[View user's profile]

Joined: 2012-06-28
Posts: 2
Location: Ontario, Canada
I just tested the same script with the latest BETA release and I'm still getting the same results. No file syncing is occurring.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Please post a log file using the GUI with the same version of WinSCP.
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License