----- "Rich Shepard" <[email protected]> wrote: > On Sun, 1 Nov 2009, Joe Pruett wrote: > > > * doesn't match files starting with dot. the right way to tar a > directory > > is to use . as the arg: > > > > tar cvzf /media/disk/psa-home.tgz . > > Oh, duh! I knew that. But, for some reason my head's elsewhere > this > afternoon. > > Thanks, Joe, >
Also if you want just the dot files/dirs you can try this: tar cvzf /media/disk/psa-home.tgz .??* .??* will match all dot files that have more the two characters in the name, thus skipping . and .., if you have a dot file named something like .a, you will have to name that explicitly on the command line. _______________________________________________ PLUG mailing list [email protected] http://lists.pdxlinux.org/mailman/listinfo/plug
