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 09-08-2010, 08:32 AM
jdz jdz is offline
Junior Member
 
Posts: 9
Default Backups...

Hi,

I just installed Zimbra FOSS edition and I am quite pleased with it so far.
Now, I need to setup the backups and I have a little question...
I looked at the different FOSS backup scripts and, as far as I could see, they all do a full 'zmcontrol stop' or '/etc/init.d/zimbra stop'...
Wouldn't there be a way to safely backup /opt/zimbra with all services stopped, except the mta, so no mails are refused while the backup is running...?
Anybody tried that yet?

Thx,
JD
Reply With Quote
  #2 (permalink)  
Old 09-08-2010, 06:47 PM
Outstanding Member
 
Posts: 717
Default

Hello,

The MTA will require LDAP to verify which email addresses are valid.

You will also lose the outgoing queue, so if there are deferred messages sitting in the queue that don't get backed up and you lose your server and need to recover, those messages will be lost.

You could leave LDAP up and do a zmslapcat to get a LDIF backup of LDAP, but you will need to figure out a procedure to recover that in the event of a restore.

You could also set up a 2nd server that is a LDAP slave and an MTA, and have all of the email go there first - then your MTA will never be offline.

Lastly, you could play it very risky and do a LVM snapshot while Zimbra is running and back that snapshot up - and then count on the Redo logs to recover the most recent data. You may experience corrupt MySQL databases, but it would be pretty similar to yanking the power from your server and powering it back up.
__________________
01 Networks, LLC / Cybernetik.net
Zimbra NE and OSS Cloud Hosting
Shared Web Hosting
Consulting Services
Reply With Quote
  #3 (permalink)  
Old 09-09-2010, 02:41 AM
jdz jdz is offline
Junior Member
 
Posts: 9
Default

Quote:
The MTA will require LDAP to verify which email addresses are valid.
Indeed, forgot about that...

Quote:
You will also lose the outgoing queue, so if there are deferred messages sitting in the queue that don't get backed up and you lose your server
Aren't the queues located in /opt/zimbra/data/postfix/spool and so backed up since I backup the whole /opt/zimbra? I would expect that at worse some outgoing/incoming mails would be sent/received twice; once during the backup and a second time in case of a restore. No?

Quote:
You could leave LDAP up and do a zmslapcat to get a LDIF backup of LDAP
In which way would the LDAP database change while only the mta is up...?

But maybe I am making things too complicated for nothing... I guess others mta will just deffer the mails targeted at my server while it is down... right?

Thx,
JD
Reply With Quote
  #4 (permalink)  
Old 09-09-2010, 04:18 AM
Advanced Member
 
Posts: 192
Default

Another option, especially if you only have a few accounts, is to make backups of individual accounts, and not of the entire server. See this thread for more details: Per User Backup Foss edition
Reply With Quote
  #5 (permalink)  
Old 09-09-2010, 05:58 AM
jdz jdz is offline
Junior Member
 
Posts: 9
Default

Cool, thanks for the info.
Maybe I will do a full backup once a week and users backups everyday...
I did not find the import feature in users preferences, but I found the "Bulk Provision" button in the accounts screen... is that it (it only talks about one csv file...)?
EDIT: Nevermind, I found the postRestURL option, that is good for me...

Thx,
JD

Last edited by jdz; 09-09-2010 at 06:14 AM..
Reply With Quote
  #6 (permalink)  
Old 09-09-2010, 08:12 AM
Outstanding Member
 
Posts: 717
Default

Quote:
Originally Posted by jdz View Post
Cool, thanks for the info.
Maybe I will do a full backup once a week and users backups everyday...
I did not find the import feature in users preferences, but I found the "Bulk Provision" button in the accounts screen... is that it (it only talks about one csv file...)?
EDIT: Nevermind, I found the postRestURL option, that is good for me...

Thx,
JD
The problem with the users backup script is that it doesn't get LDAP, so you don't get the user preferences changed since the last full backup (including filter rules, signatures, shared folder links, etc.)
__________________
01 Networks, LLC / Cybernetik.net
Zimbra NE and OSS Cloud Hosting
Shared Web Hosting
Consulting Services
Reply With Quote
  #7 (permalink)  
Old 09-09-2010, 08:38 AM
jdz jdz is offline
Junior Member
 
Posts: 9
Default

Not a big problem for now, we only use IMAP clients.
Edit: for info, the server activity is quite slow (8 clients max)...

Thx,
JD

Last edited by jdz; 09-09-2010 at 08:49 AM..
Reply With Quote
  #8 (permalink)  
Old 09-09-2010, 10:55 AM
Moderator
 
Posts: 1,432
Default

Quote:
Originally Posted by jdz View Post
I guess others mta will just deffer the mails targeted at my server while it is down... right?
Right. With only 8 clients, the time to do a full backup shouldn't be much. There are different strategies, but for example if you rsync the live server to backup volume, then down the server for a final rsync, downtime should be pretty small. Other MTAs that are trying to send to you will keep trying for at least a few hours.
__________________
Elliot Wilen
Berkeley, CA

Don't forget to enter your Zimbra version in your forum profile.
Reply With Quote
  #9 (permalink)  
Old 09-11-2010, 11:01 PM
Advanced Member
 
Posts: 213
Default

Quote:
Originally Posted by Krishopper View Post
The problem with the users backup script is that it doesn't get LDAP, so you don't get the user preferences changed since the last full backup (including filter rules, signatures, shared folder links, etc.)
My script here, [SOLVED] Yet Another Backup Script for Community Version, gets individual user db's and LDAP ldifs. It is designed to work with the rsync backup script in the same thread.
Reply With Quote
  #10 (permalink)  
Old 09-13-2010, 02:08 AM
jdz jdz is offline
Junior Member
 
Posts: 9
Default

Thanks.

I have a script that runs mostly fine... except for some timeout issues (when the server is stressed)...
Code:
zclient.IO_ERROR (Unable to get ?fmt=tgz) (cause: java.net.SocketTimeoutException Read timed out)
I have to admit that right now the old server is a bit underpowered (only 2GB of RAM, soon 4GB) so it swaps a lot, and I tested while employes were active...
But, any one knows if there is a way to increase the timeout value...?

Thx,
JD
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.