Migration wizard ZCS 5 to ZCS 8

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
minhhoang
Posts: 28
Joined: Sat Sep 13, 2014 3:14 am

Migration wizard ZCS 5 to ZCS 8

Postby minhhoang » Wed Mar 12, 2014 10:14 am

Many thanks scott.serr, with your help I carried out the first step successfully. To confirm:

1. I login as zimbra on old server, copy and paste the code

[zimbra@mail ~]$ zmprov getAlldomains

spt.vn

[zimbra@mail ~]$ echo "# Create domains"

# Create domains

[zimbra@mail ~]$ for f in $(zmprov getAllDomains); do

> echo "zmprov createDomain $f"

> done

zmprov createDomain spt.vn

[zimbra@mail ~]$

I also looked for basic "for loop" and understand the first piece now :). Now I understand that the output of first script is a file containing commands to create domains and accounts as well as password?

I don't need to export and import email, so i don't need the second script, do I?

Another question, password is encrypted so how can we import it to new zimbra server?
One again, I truly appreciate your help.

Minh.


minhhoang
Posts: 28
Joined: Sat Sep 13, 2014 3:14 am

Migration wizard ZCS 5 to ZCS 8

Postby minhhoang » Tue Mar 18, 2014 5:46 am

I got more information on this and everything goes well now. The main idea is we need to modify user account with hashed password to make zimbra translating those "hashed password" back to "pure password" which user can use to login to mailbox.

The export-script:

[QUOTE]for i in `zmprov -l gaa | egrep -v 'galsync|spam|ham|virus|stimpson'`;do

echo "$i,`zmprov -l ga $i userPassword | grep userPassword |

sed 's/userPassword: //'`";

done;[/QUOTE]
Redirect the output to userlist.txt and send it to the new server.
The import-script.

[QUOTE]#!/bin/bash

for i in `cat userlist.txt`

do

zmprov ca `echo $i | awk -F, '{print $1 " " $2}'`

zmprov ma `echo $i | awk -F, '{print $1 " userPassword " $2}'`

done[/QUOTE]
Just finish this in the LAB and I don't know how long does it take with 1000 accounts ;) If you have any improvement to push the process, please let me know.

Return to “Administrators”

Who is online

Users browsing this forum: No registered users and 21 guests