ftp itslef is not file date aware so what you are going to have to is an ls of the files on the ftp server, log that to a file on your local machine filter for the dates of interest, pull out the file names and the get those files.
if i connected to the ftp i can do "ls -R" and become the complete dirlist of ftp-server ... this i can save i a local file but ... how i filter the crap
---------- Post updated 25-01-10 at 04:53 AM ---------- Previous update was 24-01-10 at 04:51 PM ----------
now i can mount the ftp-server-DIR and "find" only the newest files:
# mount the ftp in a directory
curlftpfs -s ftp://user:pass@host.de /root/test
# possible script for me
LISTING=$(ls -t /root/test/ | head -5)
# test
echo $LISTING
webalizer
ftp.php
moo.png
pn.png
footer.png
now i have saved all ftp-files in a variable ($LISTING)
the only thing i do not know ... how i can list only the
newest files ... of the last XX (eg 14) days. don't know
the parameter for "find" ... can any help?