tar copy on-the-fly

*nix command of the day:

tar -cf - /source/directory | (cd /destination/directory && tar -xf -)

It can copies many files quickly.

See also:

http://unix.derkeiler.com/Mailing-Lists/SunManagers/2005-03/0413.html

One response to “tar copy on-the-fly”

  1. Thanks for this. I always forget the exact syntax of the command and that is usually when you need it the most.

%d bloggers like this: