Hi,
if you need to compress Zimbra directory with tar, you just need a command line like:
Code:
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
Code:
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.