View Single Post
  #2 (permalink)  
Old 09-29-2008, 08:59 PM
hinyinlam hinyinlam is offline
Intermediate Member
 
Posts: 17
Exclamation Version 2 is out!

This version fixed many issues and improved stability by simplifying codes.
It works as the followings:
1. you created accounts on both servers with same names (ie on source server abc@123.com and target server abc@any_other_domain.com)
2. it will then get mailbox id of abc@123.com from source server and abc@any_other_domain.com from target server
3. it will convert all database things from abc@123.com to abc@any_other_domain.com
4. copy all mapped mailbox to destination
5. restart the target server so make everything fresh

Fixed issues:
1. duplicate object exists during send email
2. no such mailbox/ no such folder error during login

Improvement:
1. split script into two parts: Source Server and Target Server part to improve stability
2. speed up SQL processing
3. use soft link to map mailbox instead of moving it, so repeatedly run the script will don't have to rsync from scratch, so any interrupted/inconsistent will be fixed very quick

How to use:
1. source server must have root access to target server using passwordless SSH, ie ssh <target_server> don't have to type password
2. unzip my scripts, chmod +x them
3. run Zimbra2Zimbra.sh

Please give some comment on the script
Attached Files
File Type: zip Zimbra2Zimbrazip.zip (5.5 KB, 156 views)
__________________
SME Solutions, Solution customization, web development.
HinYinSolution
HKTutorGuide
HKTutorBank
MustHaveTutor
HKTopTutor
Reply With Quote