[ Usenet FAQs | Search | Web FAQs | Documents | RFC Index ]
The following command will move an entire directory tree across a network
while preserving permissions, uids and gids.
$rsh RemoteHost "cd TargetDir; tar -cBf - ." | tar -xvBf -
Explanation:
The tar-create is rsh'd to the remote system and is written to
stdout (the pipe).
The local system is extracting the tar that is being read from
stdin (the pipe).
From: abeloni <abeloni@hstern.com.br>
Another method is:
rcp -rp host1:/dir host2:/dir
Send corrections/additions to the FAQ Maintainer:
Last Update May 13 2007 @ 00:21 AM