Sync today's files from a remote computer to a local directory using WinSCP

I need to sync files from remote to local directory using the following command

synchronize local "D:\ftp\OUT" /out

It works fine, but is there any way to upload files that are their creation dates today?

+4
source share
1 answer

Use a file mask with a time limit and a keyword today:

synchronize local -filemask=">=today" "D:\ftp\OUT" /out

This syntax is supported only in WinSCP 5.15 and later.


In earlier versions of WinSCP, you could use the syntax%TIMESTAMP% to create a limitation today.

synchronize local -filemask=">=%TIMESTAMP#yyyy-mm-dd%" "D:\ftp\OUT" /out

Further reading:

+3

Source: https://habr.com/ru/post/1537373/


All Articles