Synchronize issues from local to remote in automated script

Advertisement

markteicher
Joined:
Posts:
2
Location:
Harrisburg, PA

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

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,441
Location:
Prague, Czechia

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.

Reply with quote

markteicher
Joined:
Posts:
2
Location:
Harrisburg, PA

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.

Reply with quote

Advertisement

You can post new topics in this forum