Most of the backup scripts for the OS version that you find here use one of these methods:
- The simple method
Advantages: Simple
Disadvantages: Longest downtime of all the methods- Shut down Zimbra
- Copy /opt/zimbra
- Start Zimbra
- Rsync method
Advantages: Relatively Simple, much quicker then the above method
Disadvantages: Still a noticeable downtime that will increase as your system grows- rsync the /opt/zimbra directory to the backup directoy while Zimbra is running
- Shut down Zimbra
- rsync again while Zimbra is offline to get the "real" backup
- LVM method
Advantages: Downtime is virtually non-existent
Disadvantages: /opt/zimbra must be on a LVM volume, so this must have been setup when the system was installed (or migrated later)- Shut down Zimbra
- Create a LVM snapshot of the volume Zimbra is on (almost instant)
- Start Zimbra
- Mount the snapshot and copy/rsync the backup from that
All of these methods accomplish a complete copy of the /opt/zimbra directory which is all you need to backup everything about Zimbra. I use the LVM method on my server as the total downtime is only as long as it takes to do "zmcontrol stop; zmcontrol start"