* Mirror Script.
@ 2000-11-03 22:25 Schau, Brian
0 siblings, 0 replies; 2+ messages in thread
From: Schau, Brian @ 2000-11-03 22:25 UTC (permalink / raw)
To: tru64-unix-managers
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Mirror script
@ 2000-11-03 21:18 Hisham Al Saad
0 siblings, 0 replies; 2+ messages in thread
From: Hisham Al Saad @ 2000-11-03 21:18 UTC (permalink / raw)
To: tru64-unix-managers
Managers,
I'm sure somebody can help with this. I need to mirror users directories
daily from one Tru64 4.0e source server to another target server and have
all the users , groups and file permissions set as the source.
I use mirror 2.9 perl script which is widely used for this purpose to mirror
directories from source to target servers , I added to the crontab to run
every 24 hours.
I can't make this script to preserve users , groups and file permissions on
the target server. The script runs on the target server and logs on to the
source server as root. It copies all the files with changed time stamp
correctly but at the end, root becomes the owner of the mirrored volume and
all the directories.
Have anyone used this script in the same way I'm trying to use ? or if there
is another way to do the mirror without having to dump the data to a tape
from the source server and restore to the target ?
I would appreciate any hints.
Thanks.
Hisham Al Saad
Bahrain Telecommunications company
Tel : +973-883973
eFax : +973-9103973
ahisham@batelco.com.bh
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2000-11-03 22:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-11-03 22:25 Mirror Script Schau, Brian
-- strict thread matches above, loose matches on Subject: below --
2000-11-03 21:18 Mirror script Hisham Al Saad
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox