ZCS Administrator's Guide, Network Edition 4.5, Rev 2 11/07
Table of Contents Previous Next Index


Appendix A   Command-Line Utilities : zmrestore

zmrestore
This tool performs full restores and incremental restores for a designated mail host. You can either specify specific accounts, or, if no accounts are specified, all accounts are in the backup are restored. In addition, you can restore to a specific point in time.
This utility has short option names and full names. The short option is preceded by a single dash, the full option is proceeded by a double dash. For example, -rf is the same as --restorefullBackupOnly.
Syntax
zmrestore [options]
Description
 
Short Name
<arg> Specifies the account email addresses. Separate accounts with a blank space or type all to restore all accounts.
Replays the redo logs in backup only, which excludes archived and current redo logs of the system
Restores accounts to target accounts whose names are prepended with prefix. (Can only be used in commands that use the -pre option.)
<arg> The label of the full backup to restore. Restores to the latest full backup if this is omitted.
<arg> The prefix to pre-pend to the original account names
<arg> Replay redo logs up to and including this incremental backup
<arg> Replay up to and including this redo log sequence
<arg> Replay rodo logs until this time
Restores to the full backup only, not any incremental backups since that backup.
<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.
--skipDeletedAccounts
-skipDeletedAccounts
Do not restore if named accounts were deleted or did not exist at backup time. (This option is always enabled with -a all)
<arg> Specifies the backup target location. The default is <zimbra_home>/backup.
Examples
Perform complete restore of all accounts on server1, including last full backup and any incremental backups since last full backup.
zmrestore -acct all -s server1.domain.com
zmrestore -rf -acct all -s server1.domain.com
zmrestore -a user1@domain.com -ca -pre new_

Appendix A   Command-Line Utilities : zmrestore

Table of Contents Previous Next Index
ZCS Administrator's Guide, Network Edition 4.5, Rev 2 11/07
Copyright © 2007 Zimbra Inc.