Part1 - Part2 - Part3 - Part4 - Part5 - Single Page

Top Document: comp.unix.aix Frequently Asked Questions (Part 2 of 5)
Previous Document: 1.603: How do I set a tty port for both dial-in and dial-out?
Next Document: 1.605: How can I send mail to hosts that cannot be pinged?


[ Usenet FAQs | Search | Web FAQs | Documents | RFC Index ]

1.604: How to move or copy whole directory trees across a network


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



Top Document: comp.unix.aix Frequently Asked Questions (Part 2 of 5)
Previous Document: 1.603: How do I set a tty port for both dial-in and dial-out?
Next Document: 1.605: How can I send mail to hosts that cannot be pinged?

Part1 - Part2 - Part3 - Part4 - Part5 - Single Page


[ Usenet FAQs | Search | Web FAQs | Documents | RFC Index ]

Send corrections/additions to the FAQ Maintainer:
bofh@mail.teleweb.pt (Jose Pina Coelho)

Last Update May 13 2007 @ 00:21 AM