Page 1 of 1

Command zmmailbox by date

Posted: Sun Apr 27, 2014 7:26 pm
by mgentil
Good night.

Need a little help. Need to export some accounts of e-mails from my Zimbra server using the command zmmailbox using a date range. For example, exports have to be from 07/01/13 to 04/22/14. How is the syntax of this command? Thank you,

Command zmmailbox by date

Posted: Sun May 04, 2014 9:55 pm
by fs.schmidt
Hi !
I'm' new here but I think it might help you:

See:
Export">https://wiki.zimbra.com/wiki/Ajcody-Migration-Notes
See:
Export Using Query String - Before And After Dates

zmmailbox -z -m user@`zmhostname` getRestURL "//?fmt=tgz&query="after:2/1/2014 before:3/15/2014 type:message meta=0"" > /tmp/test_export/test_export.tgz
My best regards,

Fabio S. Schmidt

Command zmmailbox by date

Posted: Fri May 09, 2014 12:00 pm
by mgentil
Fabio,
Thanks for the reply. I used this command and it worked.
thank you

Re: Command zmmailbox by date

Posted: Wed May 23, 2018 8:50 am
by vdagost-fr

Re: Command zmmailbox by date

Posted: Fri Aug 10, 2018 7:14 pm
by hisfran
The correct syntax is at: https://wiki.zimbra.com/wiki/Ajcody-Mig ... fter_Dates
This worked for me to export from an old Zimbra 7.6 server.

Code: Select all

 zmmailbox -z -m user@`zmhostname` gru '/?fmt=tgz&query=after:"10/01/14" and before:"10/15/14"' > /tmp/filename.tgz