Hello everyone,
I've made a simple script for the bulk move from one ZCS to another. Servers have to be in one Zimbra Organization (use the same LDAP server, I suppose).
Script has been tested with ZCS 7.1.
There it is:
#########################
#!/bin/bash
declare -a arr
tmpFile=tmpfile.csv
target="target.server.FQDN"
/opt/zimbra/bin/zmprov gqu localhost > $tmpFile
arr=(` awk -F" " '{print $1}' $tmpFile`)
element_count=${#arr[@]}
index=0
while [ "$index" -lt "$element_count" ]
do
echo Preparing to move mailbox ${arr[$index]}.
/opt/zimbra/bin/zmmailboxmove -a ${arr[$index]} -t $target
/opt/zimbra/bin/zmmailboxmove -a ${arr[$index]} -po
((index++))
done
#########################
Any suggestions/improvements are welcome.


LinkBack URL
About LinkBacks

