Command zmmailbox by date

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

Command zmmailbox by date

Postby mgentil » Sun Apr 27, 2014 7:26 pm

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
Advanced member
Advanced member
Posts: 118
Joined: Sat Sep 13, 2014 3:37 am
Location: Brazil
Contact:

Command zmmailbox by date

Postby fs.schmidt » Sun May 04, 2014 9:55 pm

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
My 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

Postby mgentil » Fri May 09, 2014 12:00 pm

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

Re: Command zmmailbox by date

Postby vdagost-fr » Wed May 23, 2018 8:50 am

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

Re: Command zmmailbox by date

Postby hisfran » Fri Aug 10, 2018 7:14 pm

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

Return to “Administrators”

Who is online

Users browsing this forum: No registered users and 28 guests