Quote:
Originally Posted by mozzi Allo all
Being a tad new here I would like to ask the following.
I currantly run Zimbra 7.1.2_GA_3268 (build 20110804130756) on SLES 32 here, we are moving to RHEL and I want too move zimbra over. Will be installing: zcs-7.1.2_GA_3268.RHEL6_64.20110804131406.
Mail, settings accounts the lot, to the end user it must be seemless.
Any pointers @ doc's or personal experiences?
Mozzi |
Just a hint :
Network Edition: Moving from 32-bit to 64-bit Server - Zimbra :: Wiki
I've done a migration using this guide for open source edition.
Another option : You may also backup+restore account on LDAP data) and then backup+restore mailbox by using following script :
Backup Mailbox Code:
#!/bin/bash
### START CONFIGURATION ###
DIR="/tmp/zimbra-backup";
OUTPUT="/tmp/zimbra-backup";
### END OF CONFIGURATION ###
USERS=`su - zimbra -c 'zmprov gaa'`;
### The above command work on Zimbra 5.x. If you use Zimbra 6.x or 7.x, use
### USERS=`su - zimbra -c 'zmprov -l gaa'`; instead
DATE=`date +%Y%m%d`;
if [ ! -d $DIR ]; then mkdir $DIR; chown zimbra:zimbra $DIR; fi
for ACCOUNT in $USERS; do
NAME=`echo $ACCOUNT`;
echo "Processing mailbox $NAME backup..."
su - zimbra -c "zmmailbox -z -m $ACCOUNT getRestURL '//?fmt=tgz' > $DIR/$NAME.tgz";
done
echo "Compressing mailbox backup, please wait..."
cd $DIR; mkdir $DATE; mv *.tgz $DATE
tar cjpf $OUTPUT/$DATE.tar.bz2 $DATE;
cd $DIR; rm -rf $DATE
echo "Zimbra mailbox backup has been completed successfully."
Restore Mailbox Code:
#!/bin/bash
### START CONFIGURATION, CHANGE THE FOLDER WITH YOUR BACKUP FOLDER ###
DIR="/srv/20100315";
### END OF CONFIGURATION ###
clear
echo "Retrieve zimbra user name..."
USERS=`su - zimbra -c 'zmprov -l gaa'`;
for ACCOUNT in $USERS; do
NAME=`echo $ACCOUNT`;
echo "Restoring $NAME mailbox..."
su - zimbra -c "zmmailbox -z -m $NAME postRestURL '//?fmt=tgz&resolve=reset' $DIR/$NAME.tgz";
done
echo "All mailbox has been restored successfully"