[PATCH] adding two new options to 'cp'

Matthew D. Fuller fullermd at over-yonder.net
Thu Jul 27 04:39:50 UTC 2006

On Wed, Jul 26, 2006 at 08:51:13PM -0700 I heard the voice of
Julian Elischer, and lo! it spake thus:
> I've always used:
> find . -depth |cpio -pdlmv $dest

While we're in workarounds, I fake with:

% cat ~/bin/tarcp.sh 
cmd1="tar -cf - -C $1 ."
cmd2="tar -xvpf - -C $2"
echo "$cmd1 | $cmd2"
$cmd1 | $cmd2

(which has the twin advantages of telling me what it's doing as it
goes, and using two processes so it can pound source and dest disks in
full parallel)

Matthew Fuller     (MF4839)   |  fullermd at over-yonder.net
Systems/Network Administrator |  http://www.over-yonder.net/~fullermd/
           On the Internet, nobody can hear you scream.

More information about the freebsd-hackers mailing list