Host "root" does not exist while doing automation backup using WinSCP
This is my script to do automation:
This is my code to copy the backup from source to destination:
And this is my error code:
I really need a good automation master to guide me on this.
ps: I checked many times on the credential the server protocol information and there is no error on credential and SPI. I even can log in manually by WinSCP but when it comes to this automation script, the error came out. Plus, there is no error on my other backup from another server(same script)
Please help me.
option batch abort option confirm off open %1% -hostkey="%2%" synchronize local %3% "%4%" exit
rem S01 winscp.com /ini=nul /script=SyncToLocalScript.txt /parameter sftp://root:xxxxxxxxxxxx@xxx.xxx.xxx.xxx:xx "ssh-ed25519 255 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=" "D:\Backup\S01VM" //backup/
Host "root" does not exist. The filename, directory name, or volume label syntax is incorrect.
ps: I checked many times on the credential the server protocol information and there is no error on credential and SPI. I even can log in manually by WinSCP but when it comes to this automation script, the error came out. Plus, there is no error on my other backup from another server(same script)
Please help me.