Export all Zimbra contacts in one command

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

1
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.


Ref:

https://lorenzo.mile.si/export-all-zimbra-contacts-in-one-command/36/

Comments

Popular posts from this blog

Disabling Zimbra's AntiSpam, Amavis and AntiVirus filtering

Cambium cnPilot E400/E410/E500 Configuration Tutorial

Error "Unable to retrive Zimbra GPG key for package validation"