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

Re: [PLUG] File copy method that is twice as fast as "cp -a".



On Sun, Jun 03, 2001 at 09:30:03AM -0700, Russell Senior wrote:
> >>>>> "Karl" == Karl M Hegbloom <karlheg@hegbloom.net> writes:
> 
> Karl> root@karl:~ # time (cd /usr/local/src/ && tar pcf -
> Karl> cvs.gnome.org) | (cd /mnt/tmp/src/ && tar pxf -) 
> 
> Just for your reference, there is a tar option that makes your shell
> construction much easier:
> 
>   tar -C /usr/local/src -pcf - cvs.gnome.org | tar -C /mnt/tmp/src -pxf -
> 
> Note: 
> 
>   a) the usually optional `-' preceding the option characters is
>      needed since the -C option (to change cwd for the operation)
>      means things aren't in the priveleged spot anymore.

Eh?

  tar Cpcf /usr/local/src - cvs.gnome.org

should do the same thing you wrote.

-- 
Nathan Norman - Staff Engineer | A good plan today is better
Micromuse Ltd.                 | than a perfect plan tomorrow.
mailto:nnorman@micromuse.com   |   -- Patton

Attachment: pgpfkMDd7Mptl.pgp
Description: PGP signature


Reply to: