Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 22

Thread: Migration wizard ZCS 5 to ZCS 8

  1. #11
    jaapaikema's Avatar
    jaapaikema is offline Active Member
    Join Date
    Jan 2008
    Location
    Groningen, The Netherlands
    Posts
    25
    Rep Power
    7

    Default

    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

  2. #12
    jaapaikema's Avatar
    jaapaikema is offline Active Member
    Join Date
    Jan 2008
    Location
    Groningen, The Netherlands
    Posts
    25
    Rep Power
    7

  3. #13
    p.hackert is offline Member
    Join Date
    Nov 2012
    Posts
    11
    Rep Power
    2

    Default

    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.

  4. #14
    minhhoang is offline Intermediate Member
    Join Date
    Jun 2013
    Location
    Vietnam
    Posts
    24
    Rep Power
    2

    Default

    Quote Originally Posted by p.hackert View Post
    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.
    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

  5. #15
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,485
    Rep Power
    56

    Default

    Quote Originally Posted by minhhoang View Post
    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.
    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


    Acompli: A new adventure for Co-Founder KevinH.

  6. #16
    minhhoang is offline Intermediate Member
    Join Date
    Jun 2013
    Location
    Vietnam
    Posts
    24
    Rep Power
    2

    Default

    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.

  7. #17
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,485
    Rep Power
    56

    Default

    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


    Acompli: A new adventure for Co-Founder KevinH.

  8. #18
    scott.serr is offline Intermediate Member
    Join Date
    Aug 2009
    Posts
    18
    Rep Power
    5

    Default

    Quote Originally Posted by minhhoang View Post
    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.
    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:
    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
    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:

    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
    My users don't use calendars etc... so there was no need to migrate them. (I've gotten burned with imapsync many years ago...)

  9. #19
    minhhoang is offline Intermediate Member
    Join Date
    Jun 2013
    Location
    Vietnam
    Posts
    24
    Rep Power
    2

    Default

    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.

  10. #20
    scott.serr is offline Intermediate Member
    Join Date
    Aug 2009
    Posts
    18
    Rep Power
    5

    Default

    Quote Originally Posted by minhhoang View Post
    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.
    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.

    Code:
    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.

Page 2 of 3 FirstFirst 123 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. migration wizard
    By maybethistime in forum Zimbra Connector for Outlook
    Replies: 17
    Last Post: 06-17-2011, 07:47 AM
  2. RPC Errors with Migration Wizard
    By paulhlee1967 in forum Migration
    Replies: 0
    Last Post: 02-15-2011, 08:52 AM
  3. ZCS Migration Wizard for Domino
    By viaris in forum Migration
    Replies: 0
    Last Post: 06-18-2009, 09:45 AM
  4. exchange migration wizard
    By oxy in forum Migration
    Replies: 2
    Last Post: 09-25-2008, 01:59 PM
  5. Migration wizard for exchange
    By chandu in forum Migration
    Replies: 2
    Last Post: 12-27-2007, 12:51 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •