I found this script on the forums awhile ago, and modified it a bit to mount a Windows share to dump the TGZ backup files to ... I've only used it a few times, and it is slow, but it works:
Make a bash script containing the following:
Code:
#!/bin/bash
# get a list of all the accounts and create a script to
# execute the baccount.sh script with the email address
# of the user as a command line variable
#use zmaccts and extract only the email address from the result
#then concatenate the "/backup/./baccount.sh <emailaddress>" string for each account and write it to the file
/opt/zimbra/bin/./zmaccts | grep "@" | awk '{print "/backup/./baccount.sh " $1}' > /backup/accountbackup.sh
# change permissions on the newly created script
chmod 755 /backup/accountbackup.sh
# Execute the newly created script - this creates a tgz file for each account
/backup/./accountbackup.sh
# this mounts an SMB drive of a neighboring win machine and copies the backups over - could be anything
mount -t smbfs -o username=backups,password=somePassWord //192.168.1.6/backups /backup/SomeWindowsMachine
mv /backup/accounts/*.tgz /backup/SomeWindowsMachine