Doymer Consultores

  • Increase font size
  • Default font size
  • Decrease font size
Inicio Blog Linux Hot Backup of Zimbra Community Edition
26
Jan
2013

Hot Backup of Zimbra Community Edition

Print PDF

Open source version of Zimbra, Zimbra Community Edition or ZCS, is a mail server that has become very popular because its high number of features. But the fact of being it free limit the number of goodies that the owner include being the making of backup copies of our mailboxes one of them.

There are many web pages where you are shown how to make backups of this version but they have one or more of these drawbacks:

  • You have to stop the mail server
  • You have to backup account by account, though there are scripts that automate this process some way or other
  • They require the datastore to be in a LVM volume
  • The are not free

In this article we show you an alternate method that overcome this drawbacks and allow you to make consistent hot copies of your mail server.

The problem of hot copies is that the server may have locked the data store or files inside it on one side and that, between the point-in-time you start copying the data and the point-in-time that you finish copying it, changes may have happened that render it inconsistent. That's the reson that many instructions tell you to stop the mail server so that all locks are released and data is guaranteed not to change during copy.

The mechanism to get the same results not having to stop the mail server servidor goes through 'freezing' the data store by making what is called an snapshot. So that if your data is located in a LVM volume on in the new disk format of the latest Linux versiones you may use the features that these offer to achieve the same result.

 

The alternative way

But it is also common to have your data in standard volumes like ext3, ext4 o Reiserfs and here is where hotcopy from idera (formerly r1soft) enter the game and will allow us to get the needed snapshot.

Go and download it from the owner page (you will have to register for that but it will pay your effort). Now we have to install and configure it for our server. Instructions on doig this and examples of use are in the same web site but, in short, it all reduces to executing the command

hcp-setup --get-module --no-binary

so that we compile the right version of the driver for our running kernel. Not to say that you MUST have the kernel headers and the compiler subsystem but this is something that is usually already installed. Else go for it or you will not able to atch the driver version to that of your kernel's and it will be useles.

The former paragraph implicitly means that if you patch your server and there is a change in the kernel version you will have to rebuild the driver with the former command or it will stop working.

 

Making the Copy

Now we can 'freeze' our data store so that all former troubles desappear. To do this you only have to identify the device where your mail storage is located and execute the following command

hcp --read-only /dev/sda2

supossing that it is in /dev/sda2 whaere your mail boex are stored. This command might reply with the name of the device where we can pull the data from, something like

Hot Copy created at: /dev/hcp1

that inform us that we have the desired data available from /dev/hcp1 and that now we can use our favorite tool like tar, cp, rsync, sincrify or whatever to copy the data off our system with the full warranty that they will not change and we will hit no locked files.

When finished we have to delete the snapshot with the following command

hcp -r /dev/sda2

 

What else can you do with Hot Copy

In the product page the owner offer some ideas about what you can do with it like:

  • Add point-in-time open file backups to your existing backup scripts for free e.g. tar and rsync
  • Check your disk for errors with fsck without rebooting and without unmounting your file system!
  • Test scripts and programs in an instant snapshot of your live environment before you use them on real data
  • Keep instantly recoverable snapshots available by taking periodic snapshots via cron

Contrary to other traditional snapshot products hotcopy does not need dedicated volume space to maintain the snapshots and this is a big advantage over LVM or even the existing snapshot schemes of SAN devices that require you to dedicate volume space (about 20% is the recommended value) to snapshots.

Happy backuping!!!.

 

Share
Last Updated on Tuesday, 29 January 2013 15:23  

Comments  

 
0 # massage lyon 2017-05-26 22:04
La Suisse, en ce qui concerne la taxe d'entree dans les musees, a suivi l'excellent exemple
de l'Italie; il y a des jours payants et des jours gratuits, et de plus, on delivre aux artistes et aux eleves des cartes
gratuites permanentes.

Also visit my homepage: massage lyon: http://www.elisacavanna.club
Reply | Reply with quote | Quote
 
 
0 # hypnotherapie lyon 2017-06-17 07:37
Extremely instructive....look forward to returning.

[url=http://techsupportinch icago.com/?option=com_k2u=381 - http://eu-lac.org/vmwiki/index.php/User:MargaritaPendley - http://www.tattoofestiasi.ro/?option=com_k2&view=itemlist&task=user&id=20370 - http://utea.cc/comment/html/index.php?page=1&id=14419 - http://deroindonesia.com/?option=com_k2&view=itemlist&task=user&id=27649 - http://furnace-zero.tk/wiki/index.php/U%C5%BCytkownik:GraceLyster3 - http://kiloman3.net/swrp/index.php?topic=447.0 - http://www.dianamajerova.cz/?option=com_k2&view=itemlist&task=user&id=6475 - http://www.j2mih.com/mboard/msg/53680.html - http://esgstv.com/home.php?mod=space&uid=42380&do=profile&from=space - http://trinitynetworks.org/punbb/viewtopic.php?id=142073 - http://www.evangile.be/index.php/component/k2/itemlist/user/11611 - http://toolpundit.com/forum/viewtopic.php?t=453544 - http://www.csmicolorado.org/index.php/topic,79050.0.html?PHPSESSID=c4297fb3ec432c0048f6b802c32ca4cf - http://multiboxing.net/member.php?u=350-DevonLilli - http://forum.betworldplayer.com/viewtopic.php?f=9&t=128639 - http://qdhaiqiao.com/comment/html/index.php?page=1&id=112145 - http://qnantong.com/home.php?mod=space&uid=958409&do=profile - http://csolfz.com/home.php?mod=space&uid=15617&do=profile - http://almusaileem.com/author/merissa5610/ - http://slhwtyw.com/home.php?mod=space&uid=315161&do=profile&from=space - http://92xm.com/home.php?mod=space&uid=1393558&do=profile&from=space - http://m.gamevilusa.com/forums/member.php?u=458788-TaylorW836

Here is my blog: hypnotherapie lyon: http://ellsol.com/?option=com_k2&view=itemlist&task=user&id=603057
Reply | Reply with quote | Quote
 
 
0 # detente massage lyon 2017-06-23 09:52
Hiya, nice websites you've gotten at this time there.


visit this web page link: https://wiki.tesseractnet.com/view/Meilleur_massage_lyon - visit: http://www.globalsitio.com/?option=com_k2virboard=;title=PostReply - just click the
following document: http://dearmindsloreal.com/?option=com_k2u=101884 - try this website: http://freshlyclipped.com/groups/massage-lyon-spa/ - My Web Site: http://towerdefenseboss.com/profile/wyatttrimm9 - [url=http://thermos-fryazino.ru/?option=com_k2 detente massage lyon: http://www.hillwoodcollege.com/?option=com_k2&view=itemlist&task=user&id=11430
Reply | Reply with quote | Quote
 
 
0 # Anemonalove 2017-07-06 14:51
Hi guys! Who wants to see me live? I'm live at
HotBabesCams.com, we can chat, you can watch me live for free, my nickname is Anemonalove
, here is my pic:

https://3.bp.blogspot.com/-u5pGYuGNsSo/WVixiO8RBUI/AAAAAAAAAFA/JWa2LHHFI2AkHParQa3fwwHhVijolmq8QCLcBGAs/s1600/hottest%2Bwebcam%2Bgirl%2B-%2BAnemonalove.jpg
Reply | Reply with quote | Quote
 
 
0 # easterbrook.f2s.com 2017-10-15 19:05
QUINTAS Fátima. ARIÈS, Philipe & DUBY, Georges.
Reply | Reply with quote | Quote
 
 
0 # Casino Digital 2017-10-19 14:14
cirurgião-dentista irá adiar na consulta?
Reply | Reply with quote | Quote
 

Add comment

The owner of this site is not responsible of the opinions that users pour in their comments, and can or cannot agree with what they write.

Fair Play, Please

Please do not make offensive or insult-ant comments. Avoid publicity and Spam. Do not use the comments area to 'plug' your own site. Links you write may be erased. We pretend to create an open space for the authors and users to communicate.

Everyone will enjoy the right use of language, because not all are able to understand 'codified' messages SMS alike. Please do not write only with UPPER case because this is like yelling and you will probably not get attended faster only for yelling, probably the opposite.

Editing reserves

We reserve the right to not include comments that are offensive, unpleasant, that attack third parties (racists, homophobes, etc) or that have nothing to do with the site or the article.
Supplied data is private and owned by you and will not be used to start any commercial or other kind of action.


Security code
Refresh


Archived Items

Powered by ArtTree