lkml.org 
[lkml]   [1996]   [Mar]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Duplicating a file system
Date
---- As written by Marty Leisner:
>
> > In message <Pine.LNX.3.91.960309093124.145A-100000@marvin.mars.org>, Bill Power
> > s writes:
> > > On Fri, 8 Mar 1996, Joel Young wrote:
> > >
> > > This will also work: Assuming the partitions are mounted as /From/Dir and
> > > /To/Dir:
> > >
> > > (cd /From/Dir ; tar cf - . ) | (cd /To/Dir ; tar xvfp - )
> >
>
> Also look at tar -C /From/Dir -cf - . | tar -C /To/Dir -xvf -
>
> I'm not a really big fan of this nonintuitiveness (it certainly
> wasn't when I learned it...)
>
> I really favor
> cp -av <from dir> <to dir>
>
>
>
> --
> marty
> leisner@sdsp.mc.xerox.com
> Member of the League for Programming Freedom
>
>
>

I like (cd /From/Dir;find . -depth -print | cpio -pd /To/Dir)
takes care of device files.

--
Robert Hajime Lanning "It's the FROSTING!"
The opinions expressed here are not mine, nor are they anyone else's.
lanning@tidbit.fhda.edu <--for fun && for profit--> lanning@cup.hp.com


\
 
 \ /
  Last update: 2005-03-22 13:36    [W:0.060 / U:0.064 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site