Path: utzoo!attcan!utgpu!watmath!iuvax!rutgers!orstcs!uther.CS.ORST.EDU!pvo From: pvo@uther.CS.ORST.EDU (Paul V O'Neill) Newsgroups: comp.unix.questions Subject: Re: rcp as guest Message-ID: <11745@orstcs.CS.ORST.EDU> Date: 20 Jul 89 10:23:23 GMT References: <113700007@uxa.cso.uiuc.edu> Sender: usenet@orstcs.CS.ORST.EDU Reply-To: pvo@oce.orst.edu (Paul V O'Neill) Organization: Oregon State Univ. - Oceanography Lines: 34 In article <113700007@uxa.cso.uiuc.edu> ddgg0881@uxa.cso.uiuc.edu writes: > > [guest@hostA wants to rcp (recursively) to hostB as root] on hostB: /.rhosts contains the line: hostA guest on hostA: /usr/local/bin/rtar = #!/bin/csh tar cvfb - 20 $1 | rsh $2 "cd $3; tar xfBp -" cd to one directory above the directory you want to copy, type the command: rtar SourceDir 'hostA -l root' DestDir BE CAREFUL!! Escape *'s ~'s and other characters that the shell would expand. SourceDir will end up in DestDir. This is actually better than rcp'ing, as symlinks are not followed and modification times are preserved. Paul O'Neill pvo@oce.orst.edu Coastal Imaging Lab OSU--Oceanography Corvallis, OR 97331 503-737-3251