Thanks to all who responded : Matt White whitem_at_arts.usask.ca ; Frank
Wortner" <frank_at_bondnet.com> ; Dr. Thomas P. Blinn <tpb_at_doctor.zk3.dec.com>
; Steve Smith <steve.smith_at_Commerzbank.co.uk> ; Schau, Brian
<Brian.Schau_at_compaq.com> ; Tom Webster <webster_at_SSDPDC.LGB.CAL.BOEING.COM> ;
Nikola Milutinovic <Nikola.Milutinovic_at_ev.co.yu>.
Most of the them recommended to use rsync for this purpose from
http://rsync.samba.org , I looked at the site but I could not find a binary
download for Tru64, what other Unix OS download may work with Tru64 4.0E ??
Dr. Tom Blin suggested to use "rdist" , his reply follows :
Have you looked at "rdist", which is a standard component part of the
Tru64 UNIX system distribution? I believe it's really designed to do
what you are trying to do with your Perl script, and perhaps you would
find that it does it all correctly.
------------------------------------------
Steve Smith uses a different way to do this :
I use a different technique. using a cron job on the destination server, I
mount the source directory on the destination server using NFS, then use
vdump piped into vrestore to duplicate across to the mirror. As it uses
vdump/vrestore, everything is preserved as you require.
Using vdump, you can play with the dump levels to achieve the update. I do
a level 0 on Sundays and then step up through levels 1,2,3, and so on
through the rest of the week.
---------------------------------------
Schau, Brian has a twisted procedure :)
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.
--------------------------------------------------------------
And finally Nikola Milutinovic suggested this solution :
As a total workaround, you can use "vdump -<n> -D", where <n> is the
level of the backup. With level backup, you can perform one level 0
backup every week and then increase the level each day. Then just pipe
it to a "vrestore" on the other machine, like this:
# Monday
# vdump -0DCf - /usr/users | rsh remote_host "vrestore -xfD -
/usr/users"
# Tuesday
# vdump -1DCf - /usr/users | rsh remote_host "vrestore -xfD -
/usr/users"
and so on.
-------------------------------
Original message :-
> 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 ?
> Hisham Al Saad
> Bahrain Telecommunications company
> Tel : +973-883973
> eFax : +973-9103973
> ahisham_at_batelco.com.bh
Received on Sun Nov 05 2000 - 05:24:46 NZDT