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 : zmbackupquery

zmbackupquery
The zmbackupquery command is used to find full backup sets. The command can be used to find a specific full backup set or full backup sets since a specific date, or all backup sets in the backup directory.
To find out the best full backup to use as the basis for point-in-time restore of an account, run a command like this:
$ zmbackupquery -a <account email> --type full --to <restore-to time>
Syntax
zmbackupquery [options]
Description
 
Short Name
-a
<arg> Account email addresses separated by white space or all for all accounts
<arg> List backups whose start date/time is at or after the date/time specified here.
<arg> The label of the full backup session to query. An example of a label is backup200507121559510.
<arg> Mail server host name. For format, use either the plain host name or the server.domain.com name. The default is the localhost name.
<arg> Specifies the backup target location (The default is <zimbra_home>/backup.)
<arg> List backups whose start date/time is at or before the date/time specified here.
<arg> Backup set type to query. “full” or “incremental”, both are queried if one is not specified.
Specify date/time in one of these formats:
2008/12/16 12:19:23
2008/12/16 12:19:23 257
2008/12/16 12:19:23.257
2008/12/16-12:19:23-257
2008/12/16-12:19:23
20081216.121923.257
20081216.121923
20081216121923257
20081216121923
Specify year, month, date, hour, minute, second, and optionally millisecond.
Month/date/hour/minute/second are 0-padded to 2 digits, millisecond to 3 digits.
Hour must be specified in 24-hour format, and time is in local time zone.

Appendix A Command-Line Utilities : zmbackupquery

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