On Wed, Dec 29, 2010 at 11:14 AM, Maciej Grela <maciej.gr...@gmail.com> wrote:
> 2010/12/29 Peter Humphrey <pe...@humphrey.ukfsn.org>:
>> 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?
>
> On the destination
>
> r...@richese:~# nc -l 5555 | tar -xjv
> tar: Rozmiar rekordu = 8 bloków
> Pobrane/
> Pobrane/Vol 28_16.pdf
> Pobrane/EPWA-APP2.flac
> Pobrane/EPWA-APP1.flac
> r...@richese:~#
>
> On the source:
>
> ther...@richese:~$ tar -cjv Pobrane/ | nc localhost 5555
> Pobrane/
> Pobrane/Vol 28_16.pdf
> Pobrane/EPWA-APP2.flac
> Pobrane/EPWA-APP1.flac
> ther...@richese:~$
>
> Voila !

I copied several TB over network this way (netcat + tar), when I had
no possibility of physically copying data to disks (or removing disks
to copy to target machine). It worked perfectly and with a gigabit
network link between the two machines it was not so long of a job. :)

Reply via email to