Is there an easy way to recursively copy all hidden files in a directory to another directory? I would like to back up just all the settings files in a home directory, not the normal files. I tried:
cp -R .* directory
but it recognizes .
and ..
and recursively copies all the non-hidden files too. Is there a way to get cp to ignore .
and ..
?