Zimbra Distribution List Backup (Migration)

OS : Centos 5.4 32bit
ZCS : Release 6.0.1_GA_1816.RHEL5_20090911181524 CentOS5 FOSS edition.
output : dislist
*execute using user zimbra


for i in `zmprov gadl`
  echo $i
  echo "zmprov cdl $i" >> dislist
  zmprov gdl $i | grep zimbraMailForward | awk '{print $2}' > TEMP
  for row in $(cat TEMP)
    echo "zmprov adlm $i $row" >> dislist

rm -f TEMP

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.

This site uses Akismet to reduce spam. Learn how your comment data is processed.