Gentoo Archives: gentoo-user

From: Maciej Grela <maciej.grela@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Best way to copy /* ?
Date: Wed, 29 Dec 2010 17:18:04
Message-Id: AANLkTi=BCm6Z-p90YqaJZiKjz6Lib-KXOA6O6r-rva23@mail.gmail.com
In Reply to: Re: [gentoo-user] Best way to copy /* ? by Peter Humphrey
1 2010/12/29 Peter Humphrey <peter@××××××××××××××.org>:
2 > On Monday 27 December 2010 15:47:19 Dale wrote:
3 >
4 >> Some people do use tar especially if it is over a network or
5 >> something like that.  I don't have the command tho since I never
6 >> used it.
7 >
8 > Just for completeness:
9 >
10 > (cd [source] && tar cpf - . | (cd [dest] && tar xpf - ) )
11 >
12 > (I think).
13 >
14 > Would someone here please tell me what the rhs should be if the
15 > destination is at the other end of a network link?
16
17 On the destination
18
19 root@richese:~# nc -l 5555 | tar -xjv
20 tar: Rozmiar rekordu = 8 bloków
21 Pobrane/
22 Pobrane/Vol 28_16.pdf
23 Pobrane/EPWA-APP2.flac
24 Pobrane/EPWA-APP1.flac
25 root@richese:~#
26
27 On the source:
28
29 thermal@richese:~$ tar -cjv Pobrane/ | nc localhost 5555
30 Pobrane/
31 Pobrane/Vol 28_16.pdf
32 Pobrane/EPWA-APP2.flac
33 Pobrane/EPWA-APP1.flac
34 thermal@richese:~$
35
36 Voila !
37
38 root@richese:~# ls -l Pobrane/
39 razem 5580
40 -rw-r--r-- 1 thermal thermal 1623054 2010-12-26 23:57 EPWA-APP1.flac
41 -rw-r--r-- 1 thermal thermal 3657627 2010-12-26 23:57 EPWA-APP2.flac
42 -rw-r--r-- 1 thermal thermal 429580 2010-08-18 21:38 Vol 28_16.pdf
43 root@richese:~#
44
45 Br,
46 Maciej Grela

Replies

Subject Author
Re: [gentoo-user] Best way to copy /* ? Paul Hartman <paul.hartman+gentoo@×××××.com>