from zimbra to zimbra Hi all,
I am migrating from 5.0.18 to 5.0.18.
I created all the users in ldap in the new server, took the tar of store and restore it on the new server. Restored the dumped of the mysql.
I had the following for taking dump of the mysql and restoring it .
source ~/bin/zmshutil ; zmsetvars
mysql --batch --skip-column-names -e "show databases" | grep -e mbox -e zimbra > /backup/mysql.db.list
mkdir /backup/detail-database
for db in `cat /backup/mysql.db.list`; do
~/mysql/bin/mysqldump $db -S $mysql_socket -u root --password=$mysql_root_password > /backup/detail-database/$db.sql
echo "Dumped $db"
done
####################
For restoring
####################
source ~/bin/zmshutil ; zmsetvars
for db in `cat /backup/mysql.db.list |grep mbox`
do
mysql -u root --password=$mysql_root_password -e "drop database $db"
echo -e "Dropped $db"
done
mysql -u root --password=$mysql_root_password -e "drop database zimbra"
for db in `cat /backup/mysql.db.list`
do
mysql -e "create database $db character set utf8"
echo "Created $db"
done
mysql zimbra < /backup/detail-database/zimbra.sql
for sql in /backup/detail-database/mbox*
do
mysql `basename $sql .sql` < $sql
echo -e "Updated `basename $sql .sql` \n"
done
##################
For the first time without restarting the services when I logged in as a user, I had seen my all IM friends,calender appointments and mailbox with emails. I was unable to send emails as was getting the errors that the object already existing when clicked on the sent button.
When I restarted the services all the data from IM, mailbox and calender was vanished, and a new mailbox was there.
I know that I have to use the imap sync, but there should be some way to restore the mysql and getting rid of that slow and lengthy process.
ANY IDEA WHAT HAS GONE WRONG??????
REGARDS
ADEEL
Last edited by adeelarifbhatti; 08-13-2009 at 05:42 AM..
|