Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Scripting how to synchronize an FTP site to a local folder

That looks good.
gilbreen

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

Where d:\packets\ is the local folder and packets is the name of the folder on the FTP site.