CLI zmrestore restoreToTime Network Edition only

From Zimbra :: Wiki

Jump to: navigation, search
   Icon-Archive.png  - This is archive documentation, which means it is not supported or valid for recent versions of Zimbra Collaboration.

   Article-alert.png  - This article is a Work in Progress, and may be unfinished or missing sections.

   Article-check.png  - This is certified documentation and is protected for editing by Zimbra Employees & Moderators only.

Admin Article

Article Information

This article applies to the following ZCS versions.
  ZCS 7.0 Article  ZCS 7.0
  ZCS 6.0 Article  ZCS 6.0
  ZCS 5.0 Article  ZCS 5.0

This article contains information on how to use the zmrestore restoreToTime option. More on zmrestore can be found at CLI_zmrestore_Network_Edition_only.

The -restoreToTime option replays redo log sequences until time specified. When using this command, use the -lb argument to specify a full backup that took place prior to the time of the backup you wish to restore.

zmrestore -a -restoreToTime <arg> -lb full-xxxxxx

Restore stops at the earliest possible point in time if more than one point in time restore option is specified. Specify date/time in one of these formats:

"2008/05/12 17:03:31"

"2008/05/12 17:03:31 681"

"2008/05/12 17:03:31.681"







Note: TimeArguments with blank spaces must be surrounded in quotes.

For example:

zmrestore -a -restoreToTime "2008/05/12 17:03:31 268" -lb full-xxxxxx

Note: After performing the following point-in-time restore, you should run a complete backup for those accounts to avoid future restore problems with those accounts.

A good way to test what your restore is going to look like is to restore to a new target account where a prefix is prepended to the original account names:

zmrestore -a -restoreToTime <timeArgument> -lb full-xxxxxx -ca -pre restored_

In this case a new account is created named (you could then grab out the material you want, imapsync, or choose to run the command without the new target/test account).

Verified Against: ZCS 5.0.x Date Created: 1/16/2008
Article ID: Date Modified: 03/25/2015
Personal tools