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 12-16-2011, 01:54 PM
Active Member
 
Posts: 39
Default Can I delete /opt/zimbra/store?

I have a backup installation that has lots of duplicate data (thanks to imapsync thinking all messages are new). Specifically a 4GB mailbox has ballooned to 95GB !

I want to copy data from my primary server's /opt/zimbra/store and replace this one, but will this work?

Last edited by nosebreaker; 12-16-2011 at 01:54 PM.. Reason: 95GB
Reply With Quote
  #2 (permalink)  
Old 12-16-2011, 06:49 PM
Elite Member
 
Posts: 334
Default

Is this Zimbra to Zimbra Synchronization?

AFAIK, I don't think replacing /opt/zimbra/store with another /opt/zimbra/store is a good idea due to the possibility of relational data with another folder within /opt/zimbra.
__________________
Best Regards
---
Masim "Vavai" Sugianto
Vavai Personal Blog
Personal Blog [ID]

Release 7.1.3_GA_3346.SLES11_64_20110930001521 SLES11_64 FOSS edition.
Reply With Quote
  #3 (permalink)  
Old 12-17-2011, 08:39 AM
Active Member
 
Posts: 39
Default

Yes identical versions, same users, different server hostnames. How can I just replicate user data? I see there are several scripts that do various things, but none just copy the user data, they seem to replicate everything which I don't want!

Last edited by nosebreaker; 12-17-2011 at 09:00 AM..
Reply With Quote
  #4 (permalink)  
Old 12-17-2011, 06:13 PM
Elite Member
 
Posts: 334
Default

Quote:
Originally Posted by nosebreaker View Post
Yes identical versions, same users, different server hostnames. How can I just replicate user data? I see there are several scripts that do various things, but none just copy the user data, they seem to replicate everything which I don't want!
zmztozmig script may be useful for you to replicate only user data between Zimbra Server

Modify the configuration : /opt/zimbra/conf/zmztozmig.conf, adjust the parameter to fit with your environment and then run the script : /opt/zimbra/libexec/zmztozmig

zmztozmig script has "restore" parameter as described below :

Quote:
#resolve can have skip (ignores duplicates),modify (update older items),
#reset (delete the old subfolder (or entire mailbox if /)) or replace (replace the existing items) values.
#Only one value at a time as these parameters are mutually exclusive
it would be nice if you test with a mailbox before running it for all mailboxes. Let's discuss here if you found any problems regarding the script.
__________________
Best Regards
---
Masim "Vavai" Sugianto
Vavai Personal Blog
Personal Blog [ID]

Release 7.1.3_GA_3346.SLES11_64_20110930001521 SLES11_64 FOSS edition.
Reply With Quote
  #5 (permalink)  
Old 12-19-2011, 12:16 PM
Advanced Member
 
Posts: 214
Default

LOL

"nosebreaker" ask if its safe to delete the store...
aka nomen est omen


no really you cant - store is bound to mysqlbackend dont do it
go with migration scripts as mentioned above - copy over - aka nosebreaker
Reply With Quote
  #6 (permalink)  
Old 12-19-2011, 01:58 PM
Active Member
 
Posts: 39
Default

I keep getting authentication failed messages, any ideas? I can login to the admin web gui just fine!

[WARNING|main:1| 12/19/2011 16:55:32]: Auth Failed: authentication failed for admin@mydomain.com
[SEVERE|main:1| 12/19/2011 16:55:32]: Error: Source Server(mydomain.com)Authentication Failed


bofh: I am just trying to replicate user data, I was hoping to just replace that data.
Reply With Quote
  #7 (permalink)  
Old 12-19-2011, 03:32 PM
Advanced Member
 
Posts: 214
Default

you cant
if you take a look into the files stored there youll see they missing a lot
data is splittet with mysql and files

also mysql cotains information which files is allocated to which message

you athproblems smells liek an ldap problem - or dns
if you restart zimbra and get no errors its quite possible you got a corrupt ldap databse too


if its just an backup why dont you clean everything and make a new backup installation?

if both installs are the same (same distribution and absolut same version) you can actually replace the data

but you need to shutdown the source host
copy the following:
data
store
db
index
log
logger
redolog

i hope i didnt forget something

ofcourse if you get issues with auth a solution with migration tools might not work so copy above may the only one

if both installs are the same you can simply delete those dirs on the backupserver and copy the new afterwards
Reply With Quote
  #8 (permalink)  
Old 12-19-2011, 06:43 PM
Active Member
 
Posts: 39
Default

It is not an identical system per se, the system has a few accounts that other programs need to use, but aren't critical if they lose data (but do not exist on the primary). Mostly the hostname is different and the server config is different. I just want to replace the backup server's user data for 99% of users. But I can't just overwrite everything.
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.