Export all Zimbra contacts in one command

Quick tooltip for Zimbra, for exporting all user’s contacts in one shot:

for i in $(zmaccts | grep -v never | grep @yourdomain.com | awk '{print $1}') ; do zmmailbox -z -m $i getRestURL '/Contacts' > /tmp/contacts_$i.csv ; done

This will export only main contacts folder, and of course it must be run as zimbra user.

Lascia un commento

Il tuo indirizzo email non sarà pubblicato.

Solve : *
18 + 29 =


Questo sito usa Akismet per ridurre lo spam. Scopri come i tuoi dati vengono elaborati.