From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <97329038321175.tru64-unix-managers.marc@archive.invalid> From: "Schau, Brian" Date: Fri, 03 Nov 2000 22:25:25 +0000 To: tru64-unix-managers Subject: Mirror Script. X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=97329038321175 The system abused me - doing a 'Reply All' failed ... Resending > Hi, > > > I don't use the script you mention .. but still, I think I > accomplish what you're trying > to do ... Want to see something twisted? Sick? Cool? > Oh, yeah - do this: > > 1) On the machine you want to mirror from: > > 1 - log in as yourself > 2 - edit .rhosts to be: remote.machine.com your_login_name > 3 - su - # become root > 4 - cd /usr/users/your_loginname > 5 - mkfifo remote > 6 - tar csvf remote dir1 dir2 dir3 # dir1..3 is the > directories you want to backup > > - steps 1-5 is one time only. Step 6 must be done as root, > umask 0000. > > 2) On the machine you want to mirror to: > > 1 - log in as yourself > 2 - su - # become root > 3 - rsh remote_machinename cat /usr/users/yourself | tar xsf - > > ... and voila, you have a complete mirror of 'remote' on > 'local' - permissions and everything > set ... > > WARNING! Remember to set umask 0000 after su'ing (if > necessary). That way permissions will be set as on the remote peer. > WARNING! Let's not get into a r* command debate. > > This works for me. YMMV :) > > > See 'ya. > > Kind regards, > Brian