If I want to sync txt files in every Test 3 directory only, how would I do that if the directory structure is:
/mnt/this/Test 3/dir/file1.txt
/mnt/Test 3/dir/file01.txt
/mnt/Test/Test 3/file2.txt
/mnt/that/Test 3/dir/file03.txt
/mnt/the other/stuff/good/Test 3/file-1.txt
I've tried:
rsync -rv --include 'Test 3/' --include '*.txt' --exclude '*' --exclude '/*' . /mnt/backup/Test\ 3/
rsync -rv --include '*/Test 3' --include '*.txt' --exclude '*' . /mnt/backup/Test\ 3/
rsync -rv --include '*Test 3*' --include '*.txt' --exclude '*' . /mnt/backup/Test\ 3/
None of which works of course.