Command zmmailbox by date

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
Post Reply
mgentil
Posts: 11
Joined: Sat Sep 13, 2014 3:25 am

Command zmmailbox by date

Post 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,
User avatar
fs.schmidt
Outstanding Member
Outstanding Member
Posts: 278
Joined: Sat Sep 13, 2014 3:37 am
Location: Brazil
Contact:

Command zmmailbox by date

Post 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
Best regards.
Fabio S. Schmidt
http://www.bktech.com.br
Brasília - Brazil
mgentil
Posts: 11
Joined: Sat Sep 13, 2014 3:25 am

Command zmmailbox by date

Post by mgentil »

Fabio,
Thanks for the reply. I used this command and it worked.
thank you
vdagost-fr
Posts: 43
Joined: Mon Apr 11, 2016 11:59 am

Re: Command zmmailbox by date

Post by vdagost-fr »

hisfran
Posts: 31
Joined: Tue Apr 29, 2014 2:10 pm

Re: Command zmmailbox by date

Post 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
Post Reply