Problem after restore kolab v2.2.0

Jens Mohr jens at homejm.de
Thu May 28 23:50:54 CEST 2009


Hi all,

in my Company we use kolab 2.2.0. Now i have a little trouble.

Our System runs on Fedora 7 over one year perfect. Now i will change the operatingsystem. Therefor I setup a VM with CentOS 5.3 & have compile  the kolab 2.2.0 new. Then i have restore our backup and all runs perfect.

But now we must find out our Server (x336) runs not with CentOS 5.3. I think no problem! He ist certified for RH4 then i can use CentOS 4.7.

The Server is running gcc-3.4.6-10 also no problem. Kolab compile fine!

But after restore i can not login! He say user or password isn't correct!

Now my question: is my procedure in backup and restore the problem?

My kolab_backup.sh:
-----------------------------------------------------------------------------------------------------
#!/bin/bash
# Script by Micha Kersloot (micha at kovoks.nl) under the GPLv2 licence
# Script changed by Jens Mohr jens at homejm.de

BACKDIR="/backup"
KOLABDIR="/kolab"

ROTATEDIR=`date +%Y-%m-%d_%H-%M`
DESTDIR=$BACKDIR/$ROTATEDIR

mkdir -p $DESTDIR

#Stop Kolab
/kolab/bin/openpkg rc all stop

#Cyrus backup
su - kolab-r -c "$KOLABDIR/bin/ctl_mboxlist -d" > $KOLABDIR/var/imapd/mailboxlist.txt
tar -zpcf $DESTDIR/var_imapd.tgz $KOLABDIR/var/imapd

#OpenLDAP backup
$KOLABDIR/sbin/slapcat > $DESTDIR/ldap_db.ldif
tar -zpcf $DESTDIR/ldap_conf.tgz $KOLABDIR/var/openldap/openldap-data/DB_CONFIG $KOLABDIR/etc/openldap/slapd.conf $KOLABDIR/etc/openldap/slapd.access

#Kolab backup
tar -zpcf $DESTDIR/kolab_conf.tgz $KOLABDIR/etc

#Spamassassin backups
mkdir $DESTDIR/spam
/kolab/bin/sa-learn --backup > $DESTDIR/spam/spamassassin-bck.txt
cp $KOLABDIR/spam-learn.sh $DESTDIR/spam/
cp /var/spool/cron/kolab-r $DESTDIR/spam/

#Start Kolab
#/kolab/bin/openpkg rc all start
-----------------------------------------------------------------------------------------------------

my kolab_restore.sh
-----------------------------------------------------------------------------------------------------
#!/bin/bash

BACKDIR="/backup"
KOLABDIR="/kolab"

ROTATEDIR=$1
SOURCEDIR=$BACKDIR/$ROTATEDIR

/kolab/bin/openpkg rc all stop
cd /
tar -zpxvf $SOURCEDIR/kolab_conf.tgz
tar -zpxvf $SOURCEDIR/ldap_conf.tgz
tar -zpxvf $SOURCEDIR/var_imapd.tgz

cp -p $SOURCEDIR/spam/spam-learn.sh /kolab
cp -p $SOURCEDIR/spam/kolab-r /var/spool/cron/
chown kolab-r $KOLABDIR/spam-learn.sh
chown kolab-r /var/spool/cron/kolab-r

su - kolab-r -c "/kolab/bin/ctl_mboxlist -u" < $KOLABDIR/var/imapd/mailboxlist.txt

cp $KOLABDIR/var/openldap/openldap-data/DB_CONFIG /tmp/
rm -rf $KOLABDIR/var/openldap/openldap-data/*
cp /tmp/DB_CONFIG $KOLABDIR/var/openldap/openldap-data/
/kolab/sbin/slapadd -l $SOURCEDIR/ldap_db.ldif
chown -R kolab:kolab $KOLABDIR/var/openldap/openldap-data

/kolab/bin/sa-learn --restore $SOURCEDIR/spam/spamassassin-bck.txt

/kolab/bin/openpkg rc all start

/kolab/sbin/kolabconf -n
-----------------------------------------------------------------------------------------------------

I restore for testing the same backup in CentOS 5.3 all is running
in 4.7 i have a problem!

Thanks for help!

Jens




More information about the users mailing list