From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1PY0BO-00050o-3A for garchives@archives.gentoo.org; Wed, 29 Dec 2010 17:51:30 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CBA48E0384; Wed, 29 Dec 2010 17:50:10 +0000 (UTC) Received: from mx.virtyou.com (mx.virtyou.com [94.23.166.77]) by pigeon.gentoo.org (Postfix) with ESMTP id 93979E0384 for ; Wed, 29 Dec 2010 17:50:10 +0000 (UTC) Received: from weird.localnet (static-87-79-89-40.netcologne.de [87.79.89.40]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx.virtyou.com (Postfix) with ESMTPSA id DE88E39A018 for ; Wed, 29 Dec 2010 18:50:09 +0100 (CET) From: Alex Schuster To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Best way to copy /* ? Date: Wed, 29 Dec 2010 18:50:08 +0100 User-Agent: KMail/1.13.5 (Linux/2.6.36-ck-r3; KDE/4.5.4; x86_64; ; ) References: <4D18B507.8040306@gmail.com> <201012291703.44170.peter@humphrey.ukfsn.org> In-Reply-To: <201012291703.44170.peter@humphrey.ukfsn.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201012291850.08875.wonko@wonkology.org> X-Archives-Salt: 78480b5a-cff1-4bb5-b1cf-50c9779e3d8f X-Archives-Hash: b51a089c6e96909c48dd42893c366a25 Peter Humphrey writes: > On Monday 27 December 2010 15:47:19 Dale wrote: > > Some people do use tar especially if it is over a network or > > something like that. I don't have the command tho since I never > > used it. > > Just for completeness: > > (cd [source] && tar cpf - . | (cd [dest] && tar xpf - ) ) > > (I think). > > Would someone here please tell me what the rhs should be if the > destination is at the other end of a network link? What Maciej said. Or, for greater security when the destination is outside the LAN: cd [source] & tar xpf - . | ssh [user]@[host] 'cd [dest] && tar xpf -' There's also the -C option for tar to change the directory, but it's not really needed. Wonko