Topic "Synchronize issues from local to remote in automated script"

Author Message
markteicher
[View user's profile]

Joined: 2009-11-13
Posts: 2
Location: Harrisburg, PA
I have an automated script where I would like to transfer files from local to a remote machine
such that the config.txt file has the following

config.txt
option batch on
option confirm off
open user:password@example.com
option transfer binary
#synchronize directories
synchronize remote -delete h:/logs/archive /opt/logs/archive
close
exit

batch script to kick off
transfer.bat
net use h:\\
winscp.exe /console /script=config.txt

when I execute the script it appears to be copying files to the remote directories, but does not copy them. am I using the remote -delete in the wrong place. Essentially what is ever is in local, I would like to transfer to the remote directory
I tried 'put' but that did not work as it was documented
thank you in advance
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Can you post an output of the script execution as you can see it on a console?

Also definitely change the slashes to backslashes when you are specifying the local path for synchronize command.
_________________
Martin Prikryl
markteicher
[View user's profile]

Joined: 2009-11-13
Posts: 2
Location: Harrisburg, PA
I sent you a private email with the config file and log output

prikryl wrote:
Can you post an output of the script execution as you can see it on a console?

Also definitely change the slashes to backslashes when you are specifying the local path for synchronize command.
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