Scripting how to synchronize an FTP site to a local folder
I need to synchronize an FTP site to a local folder. Specifically, the local folder needs to mirror the FTP site. If the FTP site has a file, it should be downloaded to the local folder. If the FTP site has a file that has been deleted since the last time a synchronization job was run, then on the next run, it should also be deleted from the local folder. The synchronization job should never delete files on the FTP site. Would this be the command?
synchronize local -delete d:\packets\ packets
d:\packets\is the local folder and
packetsis the name of the folder on the FTP site.