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 (1) Thread Tools Display Modes
  1 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 01-18-2006, 08:59 PM
Senior Member
 
Posts: 74
Default Zimbra Full Backup and Restore???

I did followings on one FC4 box where zimbra running perfectly:

1. copy whole /opt/zimbra
2. copy /var/spool/cron/zimbra
3. copy zimbra scripts and links from init.d directories

Restored 1, 2, 3 to another new built FC4 box, exactly the same. When I reboot the machine, and check zimbra by "zmcontrol status", it said:

ERROR: service.FAILURE (system failure: getDirectContext) (cause: javax.naming.CommunicationException jian.cirrata.net:389)

I cleaned every process related to zimbra, and tried to start the zimbra again. I got promp asking password for LDAP.

Host jian.cirrata.net
Starting ldap...Password:

Why???
Reply With Quote
  #2 (permalink)  
Old 01-18-2006, 10:05 PM
Intermediate Member
 
Posts: 17
Default

Throwing my $.02 in here...did you install zimbra on the new box first or just restore the files/directories? Not sure from your post.

Last edited by hikenboots : 01-18-2006 at 10:08 PM.
Reply With Quote
  #3 (permalink)  
Old 01-19-2006, 08:55 AM
Zimbra Employee
 
Posts: 4
Default

In addition to installing the packages, ZCS's install.sh script does a lot of stuff to set up the system for operation (cron jobs, zimbra user creation, etc). The LDAP startup script is calling sudo to start slapd with the correct user and permissions. If the zimbra user isn't in the /etc/sudoers file, it might prompt you for the zimbra user's password when it tries to do the sudo.

The short answer is to move the copied /opt/zimbra directory out of the way, run install.sh to set everything up, then put your /opt/zimbra over it. That isn't guaranteed to work either, as there are host-specific configuration items all over the config keys and directory.

What exactly are you hoping to accomplish by copying the existing installation over from another working box? Are you testing restoration of messages after a rebuild of a failed server, or are you trying to clone out your ZCS install to other machines?

Hope this helps
Sean
Reply With Quote
  #4 (permalink)  
Old 01-19-2006, 01:34 PM
Senior Member
 
Posts: 74
Default Thanks

After I added /etc/sudoers and /var/log/zimbra to the backup and restore scripts, it works.

This way I can quickly and EASILY restore the crashed mail server box.
Reply With Quote
Reply


Thread Tools
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.

Zimbrablog.com




 

Search Engine Optimization by vBSEO 3.1.0