Results 1 to 10 of 10

Thread: Backups...

Hybrid View

  1. #1
    Join Date
    Sep 2010
    Posts
    12
    Rep Power
    5

    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

  2. #2
    Join Date
    Dec 2006
    Location
    Minneapolis MN
    Posts
    777
    Rep Power
    9

    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

  3. #3
    Join Date
    Sep 2010
    Posts
    12
    Rep Power
    5

    Default

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

    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?

    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

  4. #4
    Join Date
    Aug 2009
    Location
    The Hague -- The Netherlands
    Posts
    214
    Rep Power
    6

    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: http://www.zimbra.com/forums/adminis...s-edition.html

  5. #5
    Join Date
    Sep 2010
    Posts
    12
    Rep Power
    5

    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 07:14 AM.

  6. #6
    Join Date
    Dec 2006
    Location
    Minneapolis MN
    Posts
    777
    Rep Power
    9

    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

  7. #7
    Join Date
    Nov 2008
    Location
    Denver, CO
    Posts
    221
    Rep Power
    7

    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, http://www.zimbra.com/forums/adminis...tml#post186403, gets individual user db's and LDAP ldifs. It is designed to work with the rsync backup script in the same thread.

  8. #8
    Join Date
    Jun 2008
    Location
    Berkeley, CA
    Posts
    1,474
    Rep Power
    9

    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.

  9. #9
    Join Date
    Sep 2010
    Posts
    12
    Rep Power
    5

    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 09:49 AM.

  10. #10
    Join Date
    Sep 2010
    Posts
    12
    Rep Power
    5

    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

Similar Threads

  1. zipping backups and deleting old backups
    By support.txdistlcms.org in forum Administrators
    Replies: 0
    Last Post: 09-28-2009, 01:11 PM
  2. Replies: 1
    Last Post: 05-19-2009, 05:14 PM
  3. Of backups and restoration
    By lcxe in forum Administrators
    Replies: 10
    Last Post: 11-20-2008, 10:13 AM
  4. multiserver backups question
    By Vladimir in forum Administrators
    Replies: 0
    Last Post: 10-14-2008, 01:37 PM
  5. Question about NE and Backups.
    By dougconley in forum Administrators
    Replies: 2
    Last Post: 12-18-2007, 12:56 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •