Find all files with the extension .jpg in the current directory and its subdirectories, then copy them to the current working directory's backup folder.
find ./ -name "*.jpg" | xargs -I% cp % $PWD/backup;