Download, check latest and automate the process

Advertisement

newwin
Joined:
Posts:
1

Download, check latest and automate the process

Hi All,
I'm new to WinScp and i have a task to be accomplished :

1.Download a zip file from an SFTP Server
I saw in the documentation -
open sftp://user:password@example.com -hostkey="ssh-rsa 1024 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx"
Is the hostkey mandatory for file download from SFTP ?

2.Next day, if theres a new zip file on the SFTP Server and then I have to download the file
i.e. every day I want to compare my local with remote(STP Server) and if the file on the SFTP is latest then I wanted to download.
Is this something which we can achieve through Synchronization ?

3.What are the best options for the above 2 steps to be automated ?

Any suggestions on the above ?

Environment : Windows Server 2008 R2 Enterprise SP1

Reply with quote

Advertisement

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

Re: Download, check latest and automate the process

newwin wrote:

Is the hostkey mandatory for file download from SFTP ?
It is strongly recommended.

2.Next day, if theres a new zip file on the SFTP Server and then I have to download the file
i.e. every day I want to compare my local with remote(STP Server) and if the file on the SFTP is latest then I wanted to download.
Is this something which we can achieve through Synchronization ?
Sure.

3.What are the best options for the above 2 steps to be automated ?
Please start here:
https://winscp.net/eng/docs/guide_automation
_________________
Martin Prikryl

Reply with quote

Advertisement

You can post new topics in this forum