CLI zmrestore Network Edition only

Revision as of 01:09, 3 May 2006 by CAH (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.

--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.

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