[SOLVED] Re: backup and hidden files in tar

J.L. Coenders fedora at universalgrid.nl
Tue Jul 27 17:16:53 UTC 2004


Thanks guys for all the help.
It works for me now. I should be in the directory I want to backup. Then it 
works perfectly.

- Jeroen

On Thursday 22 July 2004 07:45 pm, Robert P. J. Day wrote:
> On Thu, 22 Jul 2004, Aaron Gaudio wrote:
> > 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
>
> true, since the example you initially showed claimed that tar picked
> up hidden files, but it only did so since that hidden file was in a
> subdirectory.
>
> naturally, if you put that hidden file in the current directory and
> back up based on ".", it's going to work.  that was my whole point.
>
> i think we've flogged this sufficiently for one day.
>
> rday





More information about the fedora-list mailing list