Here is a script I wrote to backup all mailboxes and scp to remove server will need to be run as zimbra user and you will need to setup id_rsa.pub keys on remove machine for password-less scp...