質問

FTP server contains files in one directory.

File names contain 4 character fixed prefix (PRE_ ) timestamp and some suffix and have different extensions like

PRE_20140101153807.1233511.PDT-220-4362133316.ext
PRE_20140101253807.12e3511.PDT-220-5362133330-32.ext
PRE_2014010"253807.12e3511.PDT-220-78921333123.ex2

new files are added periodically to this directory, it may contain whole year files.

How to mirror this directory in Windows computer local hard drive ? How to create some bat file which looks for new files added to this directory and downloads them if nessecary ?

Is it possible to use windows ftp.exe application for this or other solution ?

ftp folder is acced from windows via OpenVPN

Andrus.

役に立ちましたか?

解決

How much data are you talking about? While it may not be very elegant, and it could be vconsidered a waste of bandwidth, it may be feasible and reliable to connect to the FTP server, turn off prompting and doing an MGET of all the files.

Alternatively, you could write a short script to connect to the server and get a list of files, then iterate through the list and see which ones are not present locally and do GETs of them.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top