I want to sync some files from a remote server to my local computer. How can I make rsync to just copy the files with a certain file extension in the directory but no subdirectories?
I assumed this to be an easy task, but embarassingly I'm not getting it for nearly 2 hours. So could someone give me an example?
I did various experiments with something like the following command:
rsync -a --include=what? --exclude=what? -e ssh firstname.lastname@example.org:/test /test