[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: How to copy recursively ?



On Mon, Jul 12, 1999 at 12:40:42PM +0530, Manoj Saxena wrote:
>    I have a Redhat Linux 5.2 server on network 3. I have a client on 
>network 2. They can ping and telnet eachother. My problem is how do I 
>copy directories containing sub-directories and files and so on from 
>the server to this client. 

Assuming you've got ssh installed (and rsh turned off!) you can do this:

(all of this is on the server on network3 which I assume to be the source)

cd /path/to/base/of/source/files
tar cf - . | ssh user host network2 "(cd /path/to/unpack/dir; tar xf -)"

I think that's it... I never remember to 100% confidence so it takes
a quick test and then do it.. but this will copy all your files in
the source dir and untar them in the unpack dir w/out creating any
intermittent temporary files.

felix

-- 
felix sheng                                           ... felix deasil com

PGP: <http://wwwkeys.us.pgp.net:11371/pks/lookup?op=get&search=0x2CA84A01>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]