On 7/28/05, Sean Higgins <[EMAIL PROTECTED]> wrote:
> > > tar cvf - * | tar xf -C ../new/
> >
> > * doesn't match hidden files, so the copy will be incomplete.
> 
> Neil,
> 
> Interesting.  I had not thought about that.  I did use the above to recreate
> my hard drive from one hard drive to another one.  It worked well, I guess I
> lucked out that I did not have any hidden files in the "old" directory.

A better option is to use . (dot) a the directory. Also adding -p to
preserve permissions is essential when backing up a whole system:

tar cfp - . | (cd /target/path && tar xvfp -)

Regards,
Andreas

-- 
And I hate redundancy, and having different functions for the same thing.
        - Linus Torvalds on linux-kernel

-- 
gentoo-user@gentoo.org mailing list

Reply via email to