Your welcome! Glad to hear you didn't end up loosing anything. Sounds like it was a long night. Hopefully there wasn't an easier way that I didn't know of.
If you're running a 5.0.9+ version you might try my backup script. I based it off the
ZCS-to-ZCS Migrations article. It mounts an NFS share and backs up each account. However you could easily change the line to mount a SMB share on a Windows machine.
To import to a new server you would have to manually create the new accounts and then run the following for each account. I have tested this and it works great and is simple.
Code:
/opt/zimbra/bin/zmmailbox -z -m user@domain.com postRestURL “//?fmt=tgz&resolve=reset” account.tgz
Here's the script. Save it to a file and give it execute permissions.
Code:
#!/bin/bash
nfs_mount=mrkrabs:/data/Backup/Cliff
mount_dir=/mnt/backup
zimbra_bin=/opt/zimbra/bin
echo "Zimbra Mailbox Backup"
if [ -d /mnt/backup ]; then
echo "Mount point exists, exiting"
exit
fi
mkdir ${mount_dir}
mount ${nfs_mount} ${mount_dir}
if [ $? -ne 0 ]; then
echo "NFS mount failed, exiting"
fi
date=`/bin/date +%Y%m%d`
all_account=`${zimbra_bin}/zmprov gaa`
for account in ${all_account}; do
mb_size=`${zimbra_bin}/zmmailbox -z -m ${account} gms`
echo "Backing up ${account} (${mb_size})"
${zimbra_bin}/zmmailbox -z -m ${account} getRestURL "//?fmt=tgz" > ${mount_dir}/${date}-${account}.tgz
done
umount ${mount_dir}
rmdir ${mount_dir}
echo "Completed"