Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

markteicher

Re: Synchronize issues from local to remote in automated script

I sent you a private email with the config file and log output

martin 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.
martin

Re: Synchronize issues from local to remote in automated script

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.
markteicher

Synchronize issues from local to remote in automated script

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