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

martin

Re: Script Automation synchronize from remote to local

llucas wrote:

Thank you for your assistance, I actually had my scripting correct, I just had it in the wrong location on my computer, I needed to store the batch file locally and not on my network drive, once I corrected that, it worked successfully.
martin

Re: Script Automation synchronize from remote to local

Please attach a full session log file showing the problem (using the latest version of WinSCP).

To generate the session log file, use /log=path_to_log_file command-line argument. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.
llucas

Script Automation synchronize from remote to local

HI,
I'm fairly new to this scripting, I'm trying to synchronize from a remote root director(ip address) to a local root directory. I have masked the Ip address as this a public forum, otherwise, the rest of the script is exactly has I have it written.

open sftp://username:password@xxx.xxx.xx.x/ -hostkey=""ssh-rsa 1024 e4:dd:11:2e:82:34:ab:62:59:1c:c8:62:1d:4b:48:99"""
"synchronize local Z:\ /" "exit"

Here is my batch file:
winscp.exe /console /script=backup.txt
pause

Can you please tell me why it's not synchronizing to my local drive.

Thank you in advance for your help.
Lori