CLI zmrestore Network Edition only: Difference between revisions

No edit summary
(It should be "Incr" not "Incre" so restoreToIncrLabel)
Line 49: Line 49:
|-
|-
| valign="top" |
| valign="top" |
<font size="3" color="#000000" face=""Times New Roman""> '''  <font size="3" color="#000000" face=""Times New Roman""> '''--restoreToIncreLabel <arg>''' </font>  ''' </font>
<font size="3" color="#000000" face=""Times New Roman""> '''  <font size="3" color="#000000" face=""Times New Roman""> '''--restoreToIncrLabel <arg>''' </font>  ''' </font>
| valign="top" |
| valign="top" |
<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>

Revision as of 22:57, 27 August 2007

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

-acct

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 -acct all -s server1.domain.com

Perform restore only to last full backup, excluding incremental backups since then, for all accounts on server1.

zmbackup -rf -acct all -s server1.domain.com

Jump to: navigation, search