I want to export all users' contacts (Address book) in
csv format for migration purpose.
Zimbra is runing on ubuntu and I want to do this from cli.
How shall I proceed?
I have refereed to this link but this is not an option for me.
Kindly let me know if you want any more details.
Not sure if you want to do this on a Zimbra server, but if it is a server you can use zmmailbox with a getRestUrl for almost all things that can be done in the web interface. Become the zimbra user
zmmailbox -z -m [email protected] -t 0 getRestURL "//contacts?fmt=csv"
This is a basic csv export, mainly compatible with Zimbra. You can make the exports more compatible with other applications by replacing the csv with one of the following options:
To make an outlook 2003 compatible export you the command changes to:
zmmailbox -z -m [email protected] -t 0 getRestURL "//contacts?fmt=outlook-2003-csv"
To make an export from a different adressbook, you can use the name of that adressbook f.e.:
zmmailbox -z -m [email protected] -t 0 getRestURL "//privatecontacts?fmt=outlook-2003-csv"
You can try tool from this site: https://zimbra.org/extend/items/view/zimbra-to-outlook-converter-to-convert-zimbra-to-pst-exchange-and-office-365
It helps you to save your address book from Zimbra to csv format.