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 1PXzf2-0007tm-8G for garchives@archives.gentoo.org; Wed, 29 Dec 2010 17:18:04 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7C8B5E0667; Wed, 29 Dec 2010 17:14:26 +0000 (UTC) Received: from mail-qy0-f174.google.com (mail-qy0-f174.google.com [209.85.216.174]) by pigeon.gentoo.org (Postfix) with ESMTP id 4C58DE0667 for ; Wed, 29 Dec 2010 17:14:26 +0000 (UTC) Received: by qyj19 with SMTP id 19so12378953qyj.19 for ; Wed, 29 Dec 2010 09:14:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=yUiuqrMWg3dq943JrVaJgrHoLnRyjDEuyoLg1gu1F/4=; b=yClRZqRqsqNksXwOdIWxxh9cfhA1s0o+jRie8YFJzmvhgHbIP541CKze3CDogCT895 rf3olnaRQxwcMt9Jwwt104+hnm8W4uUtBXrP3diK+h2ranz9tPrEk3h+/nuIXtStF7d8 Ur/Ip1IcqXdG1OXbs/65rQyni+FbR/eA+WIgY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=Xy2CVblycCktMlI0GiHEWf7sol3J3+SXyQR32UJxq5qZ/wRUiEO4EleICE7rVPHVrs DYvNmYQa1OTR4UYm0gX9NJF8CSX8iop5/lUMfhAFz/PNWBQ4Yy5s6DLOo+c0NcPLWXJn pRIuX/g57uzqV7QQeTb20nNygmDh6LlH6k45U= 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 Received: by 10.229.227.12 with SMTP id iy12mr13499122qcb.181.1293642865747; Wed, 29 Dec 2010 09:14:25 -0800 (PST) Received: by 10.229.69.214 with HTTP; Wed, 29 Dec 2010 09:14:25 -0800 (PST) In-Reply-To: <201012291703.44170.peter@humphrey.ukfsn.org> References: <4D18B507.8040306@gmail.com> <201012291703.44170.peter@humphrey.ukfsn.org> Date: Wed, 29 Dec 2010 18:14:25 +0100 Message-ID: Subject: Re: [gentoo-user] Best way to copy /* ? From: Maciej Grela To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: cdf70b5c-83f5-4aea-943d-eade15750843 X-Archives-Hash: e7b08413c0d7d94ae91af1baaff7acdd 2010/12/29 Peter Humphrey : > 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. =C2=A0I 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? On the destination root@richese:~# nc -l 5555 | tar -xjv tar: Rozmiar rekordu =3D 8 blok=C3=B3w Pobrane/ Pobrane/Vol 28_16.pdf Pobrane/EPWA-APP2.flac Pobrane/EPWA-APP1.flac root@richese:~# On the source: thermal@richese:~$ tar -cjv Pobrane/ | nc localhost 5555 Pobrane/ Pobrane/Vol 28_16.pdf Pobrane/EPWA-APP2.flac Pobrane/EPWA-APP1.flac thermal@richese:~$ Voila ! root@richese:~# ls -l Pobrane/ razem 5580 -rw-r--r-- 1 thermal thermal 1623054 2010-12-26 23:57 EPWA-APP1.flac -rw-r--r-- 1 thermal thermal 3657627 2010-12-26 23:57 EPWA-APP2.flac -rw-r--r-- 1 thermal thermal 429580 2010-08-18 21:38 Vol 28_16.pdf root@richese:~# Br, Maciej Grela