Solved tar and "hidden" files

I try to add all hidden files (like .cshrc) to an tar archive. Problem is that ".*" is interpreted as the current directory. How should that be done?
 
For example: tar -cvf bla.tar --exclude . --exclude .. .*

Or specify the absolute path: tar -cvf bla.tar ~/.* (maybe add --strip-components)

Add -n if you don't want to recurse into hidden sub-directories.
 
Back
Top