ZCS Administrator's Guide, Network Edition 5.0 (Rev 5.0.19 September 2009)
Table of Contents Previous Next Index


Appendix A Command-Line Utilities : zmarchivesearch

zmarchivesearch
This command is used to search across account archives. You can search for archives that match specific criteria and save copies to a directory.
Syntax
zmarchivesearch {-m <user@domain.com>} {-q <query_string>} [-o <offset>] [-l <limit>] [-d <output_directory>]
Description
 
Short Name
<arg> Directory to write messages to. If none is specified, then only the headers are fetched. Filenames are generated in the form
RESULTNUM_ACCOUNT-ID_MAILITEMID
<arg> Sets the limit for the number of results returned. The default is 25
<arg> Specifies where the hit list should begin. The default is 0
Allows printing of status messages while the search is being executed
Example
This example is to search archives on a specified server and put a copy of the archive in a specified directory.
zmarchivesearch -m user1@yourdomain.com -q “in:sent” -o 0 -l 30 -d /var/tmp

Appendix A Command-Line Utilities : zmarchivesearch

Table of Contents Previous Next Index
ZCS Administrator's Guide, Network Edition 5.0 (Rev 5.0.19 September 2009)
Copyright © 2009 Zimbra Inc.