| 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.
|  | 
02-21-2006, 01:38 AM
| | | Move server to different OS Hi all,
what steps should i need to take to move a Zimbra installation from a FC3 server to a CentOS4.2 server? (hostname will stay the same, though IP will be different)
Thanks and keep up the great work you're all putting into Zimbra
Eric | 
02-21-2006, 08:04 AM
| | Project Contributor | |
Posts: 223
| | I don't have the technical background of the Zimbra guys, but if you have the Network Edition you could make a backup and restore it on the new server/platform. | 
02-21-2006, 08:07 AM
| | Zimbra Employee | |
Posts: 2,073
| | network is on RHEL4 only, so that's not going to help.
Install the same zimbra version on your centos4 box.
copy everything under /opt/zimbra from the fc3 box to the centos4 box.
RE-install (meaning upgrade) the same zimbra version again.
start everything. | 
02-21-2006, 08:49 AM
| | Project Contributor | |
Posts: 223
| | Quote: |
Originally Posted by marcmac network is on RHEL4 only, so that's not going to help. | Oops, didn't think on that. | 
02-22-2006, 02:13 AM
| | | Thanks for the tips.
Will give marcmarc's sollution a go soon.
Greetings Eric | 
03-05-2006, 05:03 AM
| | | Hi guys,
this is my first attempt to move zimbra from 1 server to another. Allthough i did a zmcontrol stop , service zimbra stop , i get the below errors when copying the /opt/zimbra dir.
Is this something to worry about ?
Thanks in advance
EriSan Code: [zimbra@mx1 livezimbra]$ cp -R --reply=yes * /opt/zimbra/
cp: cannot open `jakarta-tomcat-5.5.7/work/Catalina/localhost/zimbraAdmin/tldCache.ser' for reading: Permission denied
cp: cannot open `jakarta-tomcat-5.5.7/work/Catalina/localhost/zimbra/tldCache.ser' for reading: Permission denied
cp: cannot open `jakarta-tomcat-5.5.7/work/Catalina/localhost/_/tldCache.ser' for reading: Permission denied
cp: cannot open `jakarta-tomcat-5.5.7/work/Catalina/localhost/manager/tldCache.ser' for reading: Permission denied
cp: cannot open `jakarta-tomcat-5.5.7/work/Catalina/localhost/service/tldCache.ser' for reading: Permission denied
cp: cannot open `jakarta-tomcat-5.5.7/conf/tomcat-users.xml' for reading: Permission denied
cp: cannot access `postfix-2.2.3/spool/private': Permission denied
cp: cannot access `postfix-2.2.3/spool/deferred': Permission denied
cp: cannot open `postfix-2.2.3/spool/pid/unix.cleanup' for reading: Permission denied
cp: cannot open `postfix-2.2.3/spool/pid/unix.showq' for reading: Permission denied
cp: cannot open `postfix-2.2.3/spool/pid/unix.smtp-amavis' for reading: Permission denied
cp: cannot open `postfix-2.2.3/spool/pid/unix.lmtp' for reading: Permission denied
cp: cannot open `postfix-2.2.3/spool/pid/inet.smtp' for reading: Permission denied
cp: cannot open `postfix-2.2.3/spool/pid/master.pid' for reading: Permission denied
cp: cannot open `postfix-2.2.3/spool/pid/unix.bounce' for reading: Permission denied
cp: cannot open `postfix-2.2.3/spool/pid/unix.smtp' for reading: Permission denied
cp: cannot open `postfix-2.2.3/spool/pid/inet.127.0.0.1:10025' for reading: Permission denied
cp: cannot open `postfix-2.2.3/spool/pid/unix.defer' for reading: Permission denied
cp: cannot access `postfix-2.2.3/spool/public': Permission denied
cp: cannot access `postfix-2.2.3/spool/defer': Permission denied
cp: cannot open `postfix-2.2.3/conf/prng_exch' for reading: Permission denied
cp: cannot access `postfix-2.2.5/spool/saved': Permission denied
cp: cannot access `postfix-2.2.5/spool/active': Permission denied
cp: cannot access `postfix-2.2.5/spool/flush': Permission denied
cp: cannot access `postfix-2.2.5/spool/corrupt': Permission denied
cp: cannot access `postfix-2.2.5/spool/maildrop': Permission denied
cp: cannot access `postfix-2.2.5/spool/private': Permission denied
cp: cannot access `postfix-2.2.5/spool/trace': Permission denied
cp: cannot access `postfix-2.2.5/spool/bounce': Permission denied
cp: cannot access `postfix-2.2.5/spool/hold': Permission denied
cp: cannot access `postfix-2.2.5/spool/deferred': Permission denied
cp: cannot open `postfix-2.2.5/spool/pid/unix.cleanup' for reading: Permission denied
cp: cannot open `postfix-2.2.5/spool/pid/unix.showq' for reading: Permission denied
cp: cannot open `postfix-2.2.5/spool/pid/unix.smtp-amavis' for reading: Permission denied
cp: cannot open `postfix-2.2.5/spool/pid/unix.lmtp' for reading: Permission denied
cp: cannot open `postfix-2.2.5/spool/pid/inet.smtp' for reading: Permission denied
cp: cannot open `postfix-2.2.5/spool/pid/master.pid' for reading: Permission denied
cp: cannot open `postfix-2.2.5/spool/pid/unix.smtp' for reading: Permission denied
cp: cannot open `postfix-2.2.5/spool/pid/inet.127.0.0.1:10025' for reading: Permission denied
cp: cannot open `postfix-2.2.5/spool/pid/unix.defer' for reading: Permission denied
cp: cannot access `postfix-2.2.5/spool/public': Permission denied
cp: cannot access `postfix-2.2.5/spool/defer': Permission denied
cp: cannot access `postfix-2.2.5/spool/incoming': Permission denied
[zimbra@mx1 livezimbra]$
Last edited by EriSan500 : 03-05-2006 at 05:22 AM.
| 
03-05-2006, 11:36 AM
| | Zimbra Employee | |
Posts: 2,073
| | You should probably do some reading on file permissions in linux | 
03-05-2006, 01:00 PM
| | | I solved it by using RSync, worked perfect: Code: #!/bin/sh
# Simple rsync "driver" script. (Uses SSH as the transport layer.)
# http://www.scrounge.org/linux/rsync.html
# Demonstrates how to use rsync to back up a directory tree from a local
# machine to a remote machine. Then re-run the script, as needed, to keep
# the two machines "in sync." It only copies new or changed files and ignores
# identical files.
# Destination host machine name
DEST="your.destination.ip.address"
# User that rsync will connect as
# Are you sure that you want to run as root, though?
USER="root"
# Directory to copy from on the source machine.
BACKDIR="/opt/zimbra/"
# Directory to copy to on the destination machine.
DESTDIR="/opt/zimbra/"
# excludes file - Contains wildcard patterns of files to exclude.
# i.e., *~, *.bak, etc. One "pattern" per line.
# You must create this file.
# EXCLUDES=/root/bin/excludes
# Options.
# -n Don't do any copying, but display what rsync *would* copy. For testing.
# -a Archive. Mainly propogate file permissions, ownership, timestamp, etc.
# -u Update. Don't copy file if file on destination is newer.
# -v Verbose -vv More verbose. -vvv Even more verbose.
# See man rsync for other options.
# For testing. Only displays what rsync *would* do and does no actual copying.
#OPTS="-n -vv -u -a --rsh=ssh --exclude-from=$EXCLUDES --stats --progress"
# Does copy, but still gives a verbose display of what it is doing
OPTS="-v -u -a --rsh=ssh --exclude-from=$EXCLUDES --stats"
# Copies and does no display at all.
#OPTS="--archive --update --rsh=ssh --exclude-from=$EXCLUDES --quiet"
# May be needed if run by cron?
export PATH=$PATH:/bin:/usr/bin:/usr/local/bin
# Only run rsync if $DEST responds.
VAR=`ping -s 1 -c 1 $DEST > /dev/null; echo $?`
if [ $VAR -eq 0 ]; then
rsync $OPTS $BACKDIR $USER@$DEST:$DESTDIR
else
echo "Cannot connect to $DEST."
fi EriSan | | Thread Tools | | | | Display Modes | Linear Mode | | Why Join? Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.  |