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