Need the script found here [url removed, login to view] mod'd to add the following functionality:
1. take max_file_size param - only sync files smaller than this size
2. take max_site_size param - only sync files while total local size less than or equal to max_site_size
-- This requires that the script be modified to build the file list before processing. Currently it recurses over each subdir working as it goes. Should include the option of generating action log without executing actions..basically build the file list, do the comparisons for the entire site..then call the function to download, delete, etc.
3. Generate log file detailing actions taken - start time, stop time, files unchanged, files updated and why (size, date etc), files deleted, files over max size, files not sync'd because max site size was reached, files ignored because of excluded pattern match.
The referenced script needs to use _ftpparse module as well - it takes the line from FTP and parses it. We've already added this, 5 minute change to the script