Results 1 to 4 of 4

Thread: Compressing Zimbra Directory for Backup

  1. #1
    Join Date
    Aug 2010
    Rep Power

    Default Compressing Zimbra Directory for Backup

    I have my zimbra directory RSYNCed to another directory as a backup. I want to compress the backup directory into a file that will preserve all permissions, symlinks, hardlinks, and everything else necessary to keep zimbra operational.

    Someone told me to look into using TAR for this. I checked the MAN page and see lots of different options for that command. Does anyone know the necessary options needed in the TAR command to properly archive zimbra into a single file?

  2. #2
    Join Date
    Apr 2007
    Kajang, Selangor, Malaysia
    Rep Power


    rsync -azv will do the job..look here

    How to Backup Linux? 15 rsync Command Examples

    I'm backing up using rsync to other standby server.

  3. #3
    Join Date
    Apr 2011
    Rep Power


    if you need to compress Zimbra directory with tar, you just need a command line like:
    tar -jcvf /tmp/zimbraarchive.tar.bz2 /opt/zimbra
    -j ... compress with bzip2
    -c ... create
    -v ... verbose, prints each file processed, but you can miss some errors in the output (optional)
    -f <file> ... name of archive file

    Adjust the names and paths for your needs.
    An archive like this can then be restored (into current working directory) with
    tar -jxvpf /tmp/zimbraarchive.tar.bz2
    -x ... extract
    -p ... preserve permissions when extracting

    Ofcourse Zimbra has to be down to be able to archive a consistent and restorable state. Or use some kind of volume snapshoting for example with LVM, but that's a bit advanced stuff.

    Hope this helps.
    Michal Belica - IT consultant

  4. #4
    Join Date
    Jul 2008
    Rep Power


    Quote Originally Posted by View Post
    Ofcourse Zimbra has to be down to be able to archive a consistent and restorable state.
    I work-around this by rsyncing to local storage first, then tar-ing to the remote backup server. The steps I user are:

    - rsync to local (live)
    - Stop ZCS
    - rsync to local (down)
    - Start ZCS
    - TAR local rsync copy to remote storage

    I know that doubles the storage requirements on my ZCS box but it minimises downtime and also means that if something goes wrong I can be back up and running in a few line at the CLI; move the broken ZCS out of the way, rename the backup copy, fixperms and restart!

Similar Threads

  1. Did I miss something? (Zimbra GA 6.0.8 on Ubuntu 10.04)
    By vpetersson in forum Installation
    Replies: 2
    Last Post: 10-26-2010, 06:29 AM
  2. Old Backup stay in TO_DELETE status and no clearing..
    By bartounet in forum Administrators
    Replies: 0
    Last Post: 10-05-2010, 07:40 AM
  3. [SOLVED] Error Installing Zimbra on RHEL 5
    By harris7139 in forum Installation
    Replies: 10
    Last Post: 09-25-2007, 11:39 AM
  4. 4.5 Upgrade failure
    By brained in forum Installation
    Replies: 9
    Last Post: 03-03-2007, 02:30 PM
  5. Fedora Core 3, Clean Install - Not working!
    By pcjackson in forum Installation
    Replies: 17
    Last Post: 03-05-2006, 06: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