Q: Transfer directories through FTP but just images and videos can you help me with an command to send through ftp images to remote directory... For example I have this filesystem:
/directory
    image.png
    index.php
    index.html
    video.mpeg
/directory2
    image.jpg
    index.html
/directory3
    /directory
        index.html
        image.jpg

And when I run command I would like to transfer just files with specific extensions (for now jpg, png and mpeg), so my desire result on remote folder is:
/directory
    image.png
    video.mpeg
/directory2
    image.jpg
/directory3
    /directory
        image.jpg

Is there any command which can do this?

A: Assuming these are just generic *nix systems then rsync is better suited to this kind of task than ftp, e.g.
rsync -av path/ remote-system:path/ --include \*/ --include \*.jpg --include \*.png --include \*.mpeg --exclude \*

