[Prev][Next][Index][Thread]

Re: LIP General issues (fwd)



> 
> On Thu, 28 Nov 1996, Stas Bekman wrote:
> 
> > 4. HD->HD copy:
> > If it's good what is the fastest way to copy HD->HD (and Preserve all 
> > permissions and sym links) someting: 
> > cd / ; tar -cf - | tar -xf - newtarget (I din't find in tar's man page 
> > how do I specify the target dir, It's not -C!)
> > How to avoid the recursive copying of the HD mounted under /mnt?
> 
> $ cd /mnt
> $ (cd / ; tar cf - . --one-file-system) | tar xvf -
> 
> et voila.
>    -------------------------------------------------------------
>    Ira Abramov          <ira@scso.com>        Scalable Solutions
> 

No, no, no....

#mount bla-bla /mnt
#find / -mount -print | cpio -pad /mnt
... does exactly what you want


Oleg
==================
oleg@hpcms.co.il
==================