Results 1 to 7 of 7

Thread: Backup zimbra server with rsync

  1. #1
    Bullz3y3 is offline Intermediate Member
    Join Date
    Feb 2012
    Posts
    23
    Rep Power
    3

    Default Backup zimbra server with rsync

    Here's my simple backup plan

    Primary
    zimbra.domain.com
    192.168.1.100

    zimbra.domain.com
    192.168.1.101

    I setup a cron job on every midnight...

    Code:
    service zimbra stop
    
    ssh user@192.168.1.101 service zimbra stop
    
    rsync --delete -avh --progress -e ssh /opt/zimbra inet@192.168.1.123:/opt/zimbra > rsynclog
    
    service zimbra start
    
    ssh user@192.168.1.101 service zimbra start
    So once the primary is down I can switch the smtp and pop to backup and have all the setup in backup server.

    Will this work? and what are the things additionally I need to do?

  2. #2
    Crayz9000 is offline Senior Member
    Join Date
    Feb 2012
    Location
    Las Vegas
    Posts
    65
    Rep Power
    3

    Default

    Have you looked at the backup article on the Wiki?

    Open Source Edition Backup Procedure - Zimbra :: Wiki

    I would think that in order to switch to your backup server and be running normally, that you would have to run an "upgrade" install over the backup copy in order to have all the services start correctly.

  3. #3
    Bullz3y3 is offline Intermediate Member
    Join Date
    Feb 2012
    Posts
    23
    Rep Power
    3

    Default

    Thanks for the link

    Code:
    http://wiki.zimbra.com/wiki/Open_Source_Edition_Backup_Procedure#A_Simple_Shell_Script_Method_like_above.2C_but_with_rsync_over_ssh
    Above guide is similar to my script with enhancements. After I run the script and fixing the permissions will that work?

  4. #4
    Crayz9000 is offline Senior Member
    Join Date
    Feb 2012
    Location
    Las Vegas
    Posts
    65
    Rep Power
    3

    Default

    I haven't personally tested the script, but I have done a server migration over rsync before.

    Taking a closer look at your script, there are a couple of glaring issues:

    1) The primary and backup server not only have to have unique IP addresses, but unique hostnames. Remember, you can always rename the backup server before turning it into the primary.

    2. With that in mind, running Zimbra on both servers at the same time, with the same starting data, is a very bad idea.

    I'd suggest adapting the script in the wiki to your needs. Make sure to test it thoroughly before you actually go and put it into production; if you have an extra machine or two, or the ability to create virtual machines, you could make a test deployment of Zimbra and run a backup to a second test machine.

  5. #5
    Bullz3y3 is offline Intermediate Member
    Join Date
    Feb 2012
    Posts
    23
    Rep Power
    3

    Default

    Thank you for the advice.

    I'll test it out and submit the results.

  6. #6
    noondaysun is offline Intermediate Member
    Join Date
    Mar 2012
    Location
    Pietermaritzburg
    Posts
    23
    Rep Power
    3

    Default

    hey

    wouldn't this methodology be better?

    Server Live sync - Zimbra :: Wiki

  7. #7
    Bullz3y3 is offline Intermediate Member
    Join Date
    Feb 2012
    Posts
    23
    Rep Power
    3

    Default

    Yeah that seems a good article. Ok I'm a newbie linux admin anyway I'll setup two test servers and will work on it. Thank you.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. What to clean on a Zimbra mail server?
    By tezarin in forum Administrators
    Replies: 11
    Last Post: 12-16-2011, 12:43 PM
  2. Can't start Zimbra!
    By zibra in forum Administrators
    Replies: 5
    Last Post: 03-22-2007, 11:34 AM
  3. 4.5 Upgrade failure
    By brained in forum Installation
    Replies: 9
    Last Post: 03-03-2007, 03:30 PM
  4. Unable to start tomcat
    By chanck in forum Administrators
    Replies: 11
    Last Post: 06-11-2006, 12:58 AM
  5. Fedora Core 3, Clean Install - Not working!
    By pcjackson in forum Installation
    Replies: 17
    Last Post: 03-05-2006, 07:38 PM

Posting Permissions

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