The Tar Pipe
(cd src && tar -cf - .) | (cd dest && tar -xpf -). It basically means “copy the src directory to dst, preserving permissions and other special stuff.” It does this by firing up two tars – one tarring up src, the other untarring to dst, and wiring them together.
Appears in lists (1)
More like this (4)
Enhanced Shell Scripting with Ruby — A set of tips that will start you on the...
Colorizing Stderr: racing pipes, and libc monkey-patching Red errors are important; they make it easy to...