CLI zmrestoreoffline Network Edition only: Difference between revisions
(Updating content to ZCS 6.0) |
(Updating content to ZCS 6.0) |
||
Line 95: | Line 95: | ||
=ZCS 5.0= | =ZCS 5.0= | ||
*[http://www.zimbra.com/docs/ne/5.0.19/administration_guide/A_app-command-line.18. | *[http://www.zimbra.com/docs/ne/5.0.19/administration_guide/A_app-command-line.18.14.html#1268453 ZCS Administrator's Guide Network Edition 5.0 > Appendix A Command-Line Utilities > zmrestoreoffline] | ||
=ZCS 4.5= | =ZCS 4.5= | ||
*[http://www.zimbra.com/docs/ne/4.5.10/administration_guide/A_app-command-line.14. | *[http://www.zimbra.com/docs/ne/4.5.10/administration_guide/A_app-command-line.14.9.html#1173740 ZCS Administrator's Guide Network Edition 4.5 > Appendix A Command-Line Utilities > zmrestoreoffline] | ||
Revision as of 01:47, 16 January 2010
This CLI command is available only on ZCS Network Edition. For the most recent information on this CLI, including syntax and description, see ZCS Administrator's Guide Network Edition > Appendix A Command-Line Utilities.
ZCS 6.0.x
zmrestoreoffline
This tool is run when the Zimbra server (i.e., the mailbox process) is down. The MySQL database for the server and the OpenLDAP directory server must be running before you start the zmrestoreoffline command.
Syntax
zmrestoreoffline [options]
Description
Long Name | Short Name | Description |
---|---|---|
--account | -a | <arg> Specifies the account email addresses. Separate accounts with a blank space or state all for restoring all accounts. Required. |
--backedupRedologs Only | -br | Replays the redo logs in backup only, which excludes archived and current redo logs of the system |
--continueOnError | -c | Continue to restore other accounts when an error occurs |
--createAccount | -ca | Restores accounts to new target accounts whose names are pre-pended with prefix |
--debug | -d | Display diagnostics for debugging purposes |
--help | -h | Displays the usage options for this command |
--ignoreRedoErrors | If true, ignore all errors during redo log replay | |
--label | -lb | <arg> The label of the full backup to restore. Type this label to specify a backup file other then the latest. |
--prefix | -pre | <prefix> The prefix to pre-pend to the original account names. |
--restoreAccount | -ra | Restores the account in directory service. |
-restoreToIncrLabel | <arg>Replay redo logs up to and including this incremental backup | |
-restoreToRedoSeq | <arg> Replay up to and including this redo log sequence | |
-restoreToTime | <arg> Replay rodo logs until this time | |
--restorefullBackupOnly | -rf | Restores to the full backup only, not any incremental backups since that backup. |
--server | -s | <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. If -s is specified, this must be localhost. |
--skipDeletedAccounts | Do not restore if named accounts were deleted or did not exist at backup time. (This option is always enabled with -a all) | |
--systemData | -sys | Restores global tables and local config. |
--target | -t | <arg> Specifies the backup target location. The default is <zimbra_home>/backup. |
Example
Before you begin zmrestoreoffline, the LDAP directory server must be running
- Perform a complete restore of all accounts on server1, including last full backup and any incremental backups since last full backup.
zmrestoreoffline -s server1.domain.com
ZCS 5.0
- ZCS Administrator's Guide Network Edition 5.0 > Appendix A Command-Line Utilities > zmrestoreoffline
ZCS 4.5
- ZCS Administrator's Guide Network Edition 4.5 > Appendix A Command-Line Utilities > zmrestoreoffline
Related Articles