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

Re: linux copying



On Tue, 2003-05-13 at 13:25, Karsten M. Self wrote:
> > >
> > >another way is to tar and untar trough pipe without first tar and after 
> > >this untar (if you do not space)   
> > 
> > Why the trip through tar? What does that buy you over 'cp', assuming the 
> > old and new drives are both mounted?
> 
> Rigorously correct treatment of permissions, ownership, symlinks, fifos,
> device files, timestamps (both creation and access) and other sundries.  
> Most of which have been maltreated by other means of copying files in 
> the past, and most of which are probably correctly treated now, but which
> old farts still trust GNU tar to treat right.
> 
> Note that the piped tar trick does you pretty well:
> 
>     $ tar cvf . | ( cd newpath; tar xvf - )
> 
> ...too, tar is by default verbose and lets you know what's going on.  In
> the above instance, on *both* the read and write sides of the equation.
> 
> For synching up two systems, rsync wins over tar.
> 
> Peace.

My two cents: the --one-file-system (-l) option may be useful to the
OP's quest, tar'ing /proc and/or the target directory looks painful.

Shaun




Reply to: