I need a script or program that I can run nightly through Windows scheduled tasks. It needs to connect to an FTP server that does not allow passwords in the clear (port 990) and download only files that are not already downloaded or are newer. It must be able to traverse through all the folders in the FTP server recursively. The FTP server has no files in the home directory, but has two subdirectories, and each of those has many subdirectories (and more are added all the time). There is no need to go deeper than those levels of subdirectories. Example paths for files would be:
There are thousands of files and some can be quite large so the script must not time out. The FTP server is Filezilla Server on Windows. The local copies are on S:\ but it would be nice if the script allows defining the path to save files to. The script is going to be run on Windows 2016 server. The goal is to keep an offsite copy of everything on the FTP server from a remote site that can't do port forwarding (downloads only allowed.) I don't care if open source code/programs/tools are used or if the code is recycled from other projects as long as I can legally make use of it personally. If instead of a script you're suggesting a program, then all configuration settings must be given as part of the solution and the project won't be considered complete until such program is successfully configured and working on the Windows 2016 server.