I am looking for a Perl script. And Here are my requirements:
- Download files from the FTP server on the local machine and create these all files entries under an empty database.
- Now next time when script will run it should download only the added and
modified files from the FTP server.
- If filename is not present into DB table, its a new file and download that
file. And update DB table for this file.
- If filename's timestamp doesn't match, its a modified file and download
that file. And update DB table for this file.
Note: These files comparison would be from the FTP and Database. and as any new or modified files would be found just copy it under the local machine.
I am really appreciating for this help.