Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-22-2011, 04:26 AM
Member
 
Posts: 12
Default zimbra from 32 bit SLES to 64 bit RHEL

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
Reply With Quote
  #2 (permalink)  
Old 08-22-2011, 04:33 AM
Zimbra Consultant & Moderator
 
Posts: 20,315
Default

Quote:
Originally Posted by mozzi View Post
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?
A forum search will find those for you, there's also a wiki article on moving your server from 32bit to 64bit.
__________________
Regards


Bill
Reply With Quote
  #3 (permalink)  
Old 08-22-2011, 05:33 AM
Elite Member
 
Posts: 334
Default

Quote:
Originally Posted by mozzi View Post
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"
__________________
Best Regards
---
Masim "Vavai" Sugianto
Vavai Personal Blog
Personal Blog [ID]

Release 7.1.3_GA_3346.SLES11_64_20110930001521 SLES11_64 FOSS edition.

Last edited by vavai; 08-22-2011 at 05:35 AM.. Reason: Clean up script
Reply With Quote
  #4 (permalink)  
Old 08-22-2011, 06:15 AM
Member
 
Posts: 12
Default

Thanx dude!

Exactly the bump I was looking for :-)
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.