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
- fs.schmidt
- Outstanding Member
- Posts: 278
- Joined: Sat Sep 13, 2014 3:37 am
- Location: Brazil
- Contact:
Command zmmailbox by date
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
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
Fabio,
Thanks for the reply. I used this command and it worked.
thank you
Thanks for the reply. I used this command and it worked.
thank you
-
- Posts: 43
- Joined: Mon Apr 11, 2016 11:59 am
Re: Command zmmailbox by date
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.
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