Re: mc Digest, Vol 124, Issue 2



В Sat, 25 Oct 2014 04:22:20 +0200
chris glur <crglur gmail com> пишет:

I'm confused. What's the point of tar<->detar,
unless you're moving it over a slow/expensive route?
The data-flow is:
Dsk->RAM->RAMtar->RANdetar->Dsk.
And if RAM fills, it's even more absurd, by 'swapping'.
What have I missed?

== Chris Glur.

PS. I'm assuming that Dsk is the SAME Dsk, as normal.

This method is universal and can be easily adopted for network
transparency:

ssh user host "cd /path/to/src && find -name '*.png' -print0 | tar -cf- --null -T-" | tar -xf- -C /path/to/dst

P.S. tar/de-tar uses pipe and not allocates much memory.

-- 
WBR, Andrey Tataranovich


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]