Migration wizard ZCS 5 to ZCS 8

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
jaapaikema
Posts: 29
Joined: Fri Sep 12, 2014 11:16 pm

Migration wizard ZCS 5 to ZCS 8

Postby jaapaikema » Thu Dec 06, 2012 7:19 am

I can confirm that using ZxMig and ZXBackup is THE way to do a Zimbra-to-Zimbra migration. It takes a while of waiting, but in the end everything will be transfered the right way with the right permissions on shares. Just make sure you do the checks mentioned in the "Preparing the migration"-part. If a problem is found, and not solved, it can happen that ZxBackup will halt/stall on importing one or more of the mailboxen causing you to restart the import process excluding the already done mailboxes and the problem mailbox.
ZxMig is also a nice and free way of preparing for disaster recovery ;)


p.hackert
Posts: 11
Joined: Sat Sep 13, 2014 3:00 am

Migration wizard ZCS 5 to ZCS 8

Postby p.hackert » Thu Dec 06, 2012 8:55 am

success!

thanks a lot for your help! :)

now I'm able to transfer all of our mailboxes on the designated date :)
It works perfect now.
minhhoang
Posts: 28
Joined: Sat Sep 13, 2014 3:14 am

Migration wizard ZCS 5 to ZCS 8

Postby minhhoang » Tue Feb 18, 2014 1:09 am

[quote user="p.hackert"]success!

thanks a lot for your help! :)

now I'm able to transfer all of our mailboxes on the designated date :)
It works perfect now.[/QUOTE]
Dear p.hackert,
I hope that you still be active in the forum. Please share me the way you have done to upgrade from v.5 to v.8.
Many thank
phoenix
Ambassador
Ambassador
Posts: 26344
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

Migration wizard ZCS 5 to ZCS 8

Postby phoenix » Tue Feb 18, 2014 1:43 am

[quote user="minhhoang"]I hope that you still be active in the forum. Please share me the way you have done to upgrade from v.5 to v.8.[/QUOTE]Post #12 had the answer for his problem, is the problem you're having or is this just a general question? You shouldn't add your post to old threads, have you looked at any of the many threads in the forums and the wiki articles on how to move ZCS to a new server? Why don't you try some of the solutions then and see how you get on with them?
Regards

Bill

Rspamd: A high performance spamassassin replacement

If you'd like to see this implemented in a future version of ZCS then please vote on Bugzilla entries 97706 & 108168
minhhoang
Posts: 28
Joined: Sat Sep 13, 2014 3:14 am

Migration wizard ZCS 5 to ZCS 8

Postby minhhoang » Wed Feb 19, 2014 2:12 am

Dear Phoenix,
Thank for you info. I have read a lot and already had some ideas. Basically I only want to move the user account from Network Edition 5 to Open Source 8. Some suggested upgrading to version 6 and then using ZetraX migration. I am wondering whether we have a more fast and convenient way to export account directly from verson 5 and import it to version 8.
I am preparing to set up my LAB to test all possible solution that I can.
Best regards,

Minh.
phoenix
Ambassador
Ambassador
Posts: 26344
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

Migration wizard ZCS 5 to ZCS 8

Postby phoenix » Wed Feb 19, 2014 2:18 am

If all you want to do is move the account then use IMAPSYNC, there are details in the wiki (and some forum threads) on how to do it.
Regards

Bill

Rspamd: A high performance spamassassin replacement

If you'd like to see this implemented in a future version of ZCS then please vote on Bugzilla entries 97706 & 108168
scott.serr
Posts: 18
Joined: Sat Sep 13, 2014 12:41 am

Migration wizard ZCS 5 to ZCS 8

Postby scott.serr » Thu Feb 20, 2014 12:46 pm

[quote user="minhhoang"]Dear Phoenix,
Thank for you info. I have read a lot and already had some ideas. Basically I only want to move the user account from Network Edition 5 to Open Source 8. Some suggested upgrading to version 6 and then using ZetraX migration. I am wondering whether we have a more fast and convenient way to export account directly from verson 5 and import it to version 8.
I am preparing to set up my LAB to test all possible solution that I can.
Best regards,

Minh.[/QUOTE]
Minh,
I just went from 5 to 8 and saw the preferred tools only worked for 6 and up. I rolled my own. It went pretty well really, after some work.
Migrate domains and users:

[QUOTE]echo "# Create domains"

for f in $(zmprov getAllDomains); do

echo "zmprov createDomain $f"

done
echo "# Create users"

for f in $(zmprov getAllAccounts); do
if [[ "${f:0:4}" == "ham." || "${f:0:5}" == "spam." ]]; then

continue

fi
r=$(zmprov -l ga $f displayName userPassword zimbraMailAlias)

dn=$(echo "$r" | sed -n 's/displayName: (.*)/1/p')

up=$(echo "$r" | sed -n 's/userPassword: (.*)/1/p')

echo "zmprov createAccount $f"

echo "zmprov modifyAccount $f userPassword '$up' displayName "$dn""
echo "$r" | sed -n 's/zimbraMailAlias: (.*)/1/p' | while read al; do

echo " zmprov addAccountAlias $f "$al""

done
done[/QUOTE]
I redirected the output to a file.... and ran it on the new server.
Then had this script create a script to export all mail and another script to import:
[QUOTE]echo "#!/bin/bash" > zdumpmail.out

chmod +x zdumpmail.out

echo "#!/bin/bash" > zdumpmail.in

chmod +x zdumpmail.in
for f in $(zmprov getAllAccounts); do

if [[ "${f:0:4}" == "ham." || "${f:0:5}" == "spam." ]]; then

continue

fi

fund=$(echo "$f" | sed "s/@/_/")

echo "echo "$f"" >> zdumpmail.out

echo "zmmailbox -z -m $f getRestURL "//?fmt=tgz" > $fund.tgz" >> zdumpmail.out

echo "echo "$f"" >> zdumpmail.in

echo "zmmailbox -z -m $f postRestURL "//?fmt=tgz&resolve=reset" $fund.tgz" >> zdumpmail.in

done

[/QUOTE]
My users don't use calendars etc... so there was no need to migrate them. (I've gotten burned with imapsync many years ago...)
minhhoang
Posts: 28
Joined: Sat Sep 13, 2014 3:14 am

Migration wizard ZCS 5 to ZCS 8

Postby minhhoang » Tue Mar 11, 2014 11:21 am

Thank phoenix and especially scott.serr for your share. To tell the truth, I'm not very clear about how to run 2 scripts about. Sorry for my limitation on scripting skill. Could you please explain more? (I spend all day to manage to run those scripts without success :)
Thank for your time.
Minh.
scott.serr
Posts: 18
Joined: Sat Sep 13, 2014 12:41 am

Migration wizard ZCS 5 to ZCS 8

Postby scott.serr » Tue Mar 11, 2014 12:10 pm

[quote user="minhhoang"]Thank phoenix and especially scott.serr for your share. To tell the truth, I'm not very clear about how to run 2 scripts about. Sorry for my limitation on scripting skill. Could you please explain more? (I spend all day to manage to run those scripts without success :)
Thank for your time.
Minh.[/QUOTE]
Sorry, it does take some scripting know how. I just want to make sure you understand a few things. My quotes were bash scripts. You can put those in files with a .sh suffix. Make sure they are executable with "chmod +x yourscript.sh". If I were you I would comment out with a "#" everything and then uncomment one line or so at a time to understand them.
The main idea though is that the first scripts output should be put in a script that would then be run on the destination (version 8) server.
First login as zimbra on your old server.. and run:

zmprov getAllDomains
Now we want to create all those domains on the new server... so lets output the commands to do so with "echo" and then we can copy that output/script over later.
echo "# Create domains"

for f in $(zmprov getAllDomains); do

echo "zmprov createDomain $f"

done

Does that show you a createDomain command for each of your domains? I think the philosphy should be to understand each piece of the script that you are running.
I can help you along.

Return to “Administrators”

Who is online

Users browsing this forum: No registered users and 12 guests