How do I copy all the files and folders recursively with the same folder hierarchy. I however want to only copy files under a certain size.
POSIXly, and assuming file paths don't contain newline characters:
find . -type f -size -10000c | pax -rw /destination/
Here for files smaller than 10000 bytes.
find implementations have a
-print0 predicate and some
pax implementations a corresponding
-0 option that cause the file list to be NUL-delimited which would address the newline limitation mentioned above.