Recently got a new laptop and needed to copy some prefs and config files over. Command to search for the files:
find ./Library -name '*searchterm*'
You can then pipe this to copy script or similar.
I’ve also used rsync in the past but filtering with just rsync is a bit tricky.