CLI zmrestore Network Edition only: Difference between revisions
mNo edit summary |
|||
Line 47: | Line 47: | ||
| valign="top" | | | valign="top" | | ||
<font size="3" color="#000000" face="Arial"> Restores the account in directory service.</font> | <font size="3" color="#000000" face="Arial"> Restores the account in directory service.</font> | ||
|- | |- | ||
| valign="top" | | | valign="top" | | ||
Line 70: | Line 67: | ||
<font size="3" color="#000000" face=""Times New Roman""> <font size="3" color="#000000" face=""Times New Roman""> ''' ''' </font> </font> | <font size="3" color="#000000" face=""Times New Roman""> <font size="3" color="#000000" face=""Times New Roman""> ''' ''' </font> </font> | ||
| valign="top" | | | valign="top" | | ||
<font size="3" color="#000000" face="Arial"> Replay redo log sequence | <font size="3" color="#000000" face="Arial"> Replay up to and including this redo log sequence.</font> | ||
|- | |- | ||
| valign="top" | | | valign="top" | | ||
<font size="3" color="#000000" face=""Times New Roman""> ''' -- | <font size="3" color="#000000" face=""Times New Roman""> ''' --prefix ''' </font> | ||
| valign="top" | | | valign="top" | | ||
<font size="3" color="#000000" face=""Times New Roman""> ''' - | <font size="3" color="#000000" face=""Times New Roman""> ''' -pre ''' </font> | ||
| valign="top" | | | valign="top" | | ||
<font size="3" color="#000000" face="Arial"> | <font size="3" color="#000000" face="Arial"> <font size="3" face=""Times New Roman""><prefix> </font> The prefix to pre-pend to the original account names. </font> | ||
<font size="3" | |||
|- | |- | ||
| valign="top" | | | valign="top" | | ||
<font size="3" color="#000000" face=""Times New Roman""> ''' -- | <font size="3" color="#000000" face=""Times New Roman""> ''' --systemData ''' </font> | ||
| valign="top" | | | valign="top" | | ||
<font size="3" color="#000000" face=""Times New Roman""> ''' - | <font size="3" color="#000000" face=""Times New Roman""> ''' -sys ''' </font> | ||
| valign="top" | | | valign="top" | | ||
<font size="3" color="#000000" face="Arial"> | <font size="3" color="#000000" face="Arial"> Restores global tables and local config.</font> | ||
|- | |- | ||
| valign="top" | | | valign="top" | | ||
Line 95: | Line 89: | ||
| valign="top" | | | valign="top" | | ||
<font size="3" color="#000000" face="Arial"> Restores accounts to new target accounts whose names are pre-pended with <prefix>.</font> | <font size="3" color="#000000" face="Arial"> Restores accounts to new target accounts whose names are pre-pended with <prefix>.</font> | ||
|- | |- | ||
| valign="top" | | | valign="top" | | ||
<font size="3" color="#000000" face=""Times New Roman""> ''' -- | <font size="3" color="#000000" face=""Times New Roman""> ''' --backedupRedolog Only''' </font> | ||
| valign="top" | | | valign="top" | | ||
<font size="3" color="#000000" face=""Times New Roman""> ''' - | <font size="3" color="#000000" face=""Times New Roman""> ''' -br ''' </font> | ||
| valign="top" | | | valign="top" | | ||
<font size="3" color="#000000" face="Arial"> | <font size="3" color="#000000" face="Arial"> Replays the redo logs in backup only, which excludes archived and current redo logs of the system.</font> | ||
|- | |- | ||
| valign="top" | | | valign="top" | | ||
Line 119: | Line 110: | ||
| valign="top" | | | valign="top" | | ||
<font size="3" color="#000000" face="Arial"> Specifies the account email addresses. Separate accounts with a blank space or type <font size="3" color="#000000" face=""Times New Roman"">'''all'''</font> to restore all accounts.</font> | <font size="3" color="#000000" face="Arial"> Specifies the account email addresses. Separate accounts with a blank space or type <font size="3" color="#000000" face=""Times New Roman"">'''all'''</font> to restore all accounts.</font> | ||
|- | |||
| colspan="3" valign="top" | | |||
<font size="3" color="#000000" face="Arial"> ''' Common Options ''' </font> <font size="3" color="#000000" face="Arial"></font> | |||
|- | |- | ||
| valign="top" | | | valign="top" | | ||
Line 178: | Line 172: | ||
</blockquote> | </blockquote> | ||
[[Category:Command Line Interface]] | [[Category:Command Line Interface]] |
Revision as of 23:41, 15 January 2008
zmrestore
(Network Edition only)
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.
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, -rb is the same as --restorefullBackupOnly.
Syntax
zmrestore {-f | -i} -a (account) <options>
Description
Long Name |
Short Name |
Description |
--label <arg> |
-lb |
The label of the full backup to restore. Restores to the latest full backup if this is omitted. |
--restorefullBackup Only |
-rf |
Restores to the full backup only, not any incremental backups since that backup. |
--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 up to and including this redo log sequence. |
--prefix |
-pre |
<prefix> The prefix to pre-pend to the original account names. |
--systemData |
-sys |
Restores global tables and local config. |
--createAccount |
-ca |
Restores accounts to new target accounts whose names are pre-pended with <prefix>. |
--backedupRedolog 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. |
--account |
-a |
Specifies the account email addresses. Separate accounts with a blank space or type all to restore all accounts. |
Common Options | ||
--server |
-s |
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"). |
--target |
-t |
Specifies the backup target location. The default is <zimbra_home>/backup. |
--help |
-h |
Displays the usage options for this command. |
Examples
•
|
Perform complete restore of all accounts on server1, including last full backup and any incremental backups since last full backup. |
zmrestore -a all -s server1.domain.com
•
|
Perform restore only to last full backup, excluding incremental backups since then, for all accounts on server1. |
zmbackup -rf -a all -s server1.domain.com