Re: Send a file by sftp to a clustered server
You can try to upload to one server and if the uploads fail (for whatever reason), retry the same script against a different server.
Start with this:
https://winscp.net/eng/docs/script_upload_multiple_servers
Just modify the batch file like this:
Start with this:
https://winscp.net/eng/docs/script_upload_multiple_servers
Just modify the batch file like this:
winscp.com /script=script.txt /parameter sftp://user:password@192.168.1.10/
if errorlevel 1 (
winscp.com /script=script.txt /parameter sftp://user:password@192.168.1.20/
)