Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Jul 2006 23:39:48 -0500
From:      "Matthew D. Fuller" <fullermd@over-yonder.net>
To:        Julian Elischer <julian@elischer.org>
Cc:        FreeBSD Hackers <freebsd-hackers@freebsd.org>
Subject:   Re: [PATCH] adding two new options to 'cp'
Message-ID:  <20060727043948.GE69505@over-yonder.net>
In-Reply-To: <44C83831.5050900@elischer.org>
References:  <44C82A40.3020009@centtech.com> <44C83831.5050900@elischer.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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 
#!/bin/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@over-yonder.net
Systems/Network Administrator |  http://www.over-yonder.net/~fullermd/
           On the Internet, nobody can hear you scream.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060727043948.GE69505>