I'm trying to set up a script that will synchronise all images in a remote FTP directory with a local directory that I can run on a regular basis to make sure I have all new images added to the remote directory. I've been trying a solution using wget but I just can't seem to get the syntax right. Here is what I have:
wget -r -N --no-remove-listing -nd ftp://user:firstname.lastname@example.org/images/
All this seems to do is create a local index.html file with a list of links to remote files (which I don't want). How do I modify this command so it just downloads all the images in the remote directory? Alternatively, is there another unix command I can try to synchronise images from a remote FTP site?