使用 WinSCP 将今天的文件从远程目录同步到本地目录 [英] Synchronizing today's files from remote to local directory using WinSCP
本文介绍了使用 WinSCP 将今天的文件从远程目录同步到本地目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要使用以下命令将文件从远程同步到本地目录
I need to synchronize files from remote to local directory using the following command
synchronize local "D:\ftp\OUT" /out
它工作正常,但有没有办法下载创建日期为今天的文件?
It works fine but is there a way to download files which their dates of creation are today?
推荐答案
使用 文件掩码时间限制和today
关键字:
synchronize local -filemask=">=today" "D:\ftp\OUT" /out
仅 WinSCP 5.15 及更新版本支持此语法.
在早期版本的 WinSCP 中,您可以使用 %TIMESTAMP%
语法来创建今天的约束.
In earlier versions of WinSCP, you can use the %TIMESTAMP%
syntax to create the today's constraint.
synchronize local -filemask=">=%TIMESTAMP#yyyy-mm-dd%" "D:\ftp\OUT" /out
<小时>
进一步阅读:
Further reading:
- 问题WinSCP 基于时间的文件下载;
- 关于下载最新文件的WinSCP文章.
- Question WinSCP time based file download;
- WinSCP article on Downloading the most recent file.
这篇关于使用 WinSCP 将今天的文件从远程目录同步到本地目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文