Script Automation synchronize from remote to local

Advertisement

llucas
Joined:
Posts:
1
Location:
United States

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

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
28,123
Location:
Prague, Czechia

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.

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
28,123
Location:
Prague, Czechia

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.

Reply with quote

Advertisement

You can post new topics in this forum