SFTP command line to only copy updated files

Advertisement

Welshhop
Joined:
Posts:
6
Location:
UK

SFTP command line to only copy updated files

Hi, i have the following command line which copies everything from an SFTP folder to my local folder.
cd c:\Program Files (x86)\winscp
winscp.exe /console /Command "option batch abort" "option confirm off" "open sftp://User:PW@IP:PORT/" "cd /QlikView/Compliance/" "option transfer binary" "get *.* C:\VeoliaData\Compliance\" "close" "Exit" /log="C:\veoliadata\FTP_Transfer.log"

What changes do i need to make for it to only copy files that have been modified?

Thanks

Reply with quote

Advertisement

martin
Site Admin
martin avatar

Re: SFTP command line to only copy updated files

Prashanth wrote:

How to use and pass the "neweronly" parameter into the script
Like get -neweronly ....

Reply with quote

Prashanth
Guest

Re: SFTP command line to only copy updated files

Does newonly OR FILEMASK scans thru subfolder on remote site?

martin wrote:

Prashanth wrote:

How to use and pass the "neweronly" parameter into the script
Like get -neweronly ....

Reply with quote

Advertisement

martin
Site Admin
martin avatar

Re: SFTP command line to only copy updated files

Prashanth wrote:

Does newonly OR FILEMASK scans thru subfolder on remote site?
Yes they do.

Reply with quote

Advertisement

You can post new topics in this forum