[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: backup and hidden files in tar



On Thu, 2004-07-22 at 12:49 -0400, Robert P. J. Day wrote:
> On Thu, 22 Jul 2004, Aaron Gaudio wrote:
> 
> > Tar gets hidden files for me:
> >
> > $ mkdir foobar
> > $ touch foobar/.foo
> > $ tar cvf foobar.tar foobar
> > foobar/
> > foobar/.foo
> 
> only because you're not doing it in the current directory.

Not true:

$ mkdir foobar
$ cd foobar
$ touch .bar
$ tar cvf ../foobar.tar .
./
./.foo

Though I consider most tar archives made from current directory to be in
bad form (mainly because when you unpack it in the wrong place it's
harder to clean up).



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]