Link to home
Create AccountLog in
Avatar of Peterson50
Peterson50Flag for United States of America

asked on

Groupwise Rsync does not work but flat copy does

We have our Groupwise server on SLES10 which runs a script which downs the groupwise agents and copies the postoffice, domain etc to the backup server in another location.  We then have a script on that server which downs the agents, rsync's the backup to the proper location and brings the agents back up.  For some reason though when we do the restore rsync, the files show being updated, but when we launch Groupwise Client, the mailbox still shows the older emails.  But if we manually copy the groupwise files into the proper location, and restart groupwise, it shows the current information.
So I know the sychronization from the productioin server to the backup server is working, as if I manually copy the synced files into its proper location it works, but if I use rsync to copy from /backupserver/sync folder to /backupfolder/groupwise folder for some reason it does not seem to overwrite the files.
Avatar of TobiasHolm
TobiasHolm
Flag of Sweden image

Hi!

Can you attach your RSync scripts? Sounds like there's something wrong there. Do you have any logs from the RSync operation?

Regards, Tobias
Avatar of Peterson50

ASKER

Where are the crontab logs or rsync logs kept?
Avatar of xterm
xterm

Do you get any errors when you run the rsync command?

What is the exact command you run when doing the rsync, and does it run instantaneously, or at least appear to take a little time?
I can run the script manually and it appears to be updating the proper files. It does not generate any errors on the screen.  The script copies the files from a folder called sync into the proper folder on the VOL1 for post office, domain etc.  The contents of the script file are below:

#!/bin/sh

#to restore Groupwise and Dbase
/etc/init.d/grpwise stop
/usr/bin/rsync -azuv --delete /media/nss/VOL1/sync/gwpo /media/nss/VOL1
/usr/bin/rsync -azuv --delete /media/nss/VOL1/sync/seltpo /media/nss/VOL1
/usr/bin/rsync -azuv --delete /media/nss/VOL1/sync/library /media/nss/VOL1
/usr/bin/rsync -azuv --delete /media/nss/VOL1/sync/Dbase /media/nss/VOL1/apps
/etc/init.d/grpwise start
Also if I manually down the agents and manually copy the above folders over to the VOL1 folder, everything shows up properly in Groupwise, don't understand why the sync does not work but the copy does, they are the same files being copied
ASKER CERTIFIED SOLUTION
Avatar of Peterson50
Peterson50
Flag of United States of America image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
It finally worked, I didn't get any other suggestions