[PLUG] OK, GUI file managers all suck
Paul Heinlein
heinlein at madboa.com
Wed Jun 28 15:45:50 UTC 2006
On Wed, 28 Jun 2006, Lancashire, Pete wrote:
> or ..
>
> % cd /source; tar cf - . | (cd /destination && tar xBpf -)
Assuming GNU tar, it can be a bit shorter than that:
tar cC /source . | tar xC /destination
The lacking a -f switch, the default is to pipe to stdin and from
stdout; the -C switch removes the need to cd to a directory.
I think -p is the default, though it assumes that root is performing
the process.
I don't know what the advantage to -B is. Clues, anyone?
--
Paul Heinlein <> heinlein at madboa.com <> www.madboa.com
More information about the PLUG
mailing list