CLI zmrestore restoreToTime Network Edition only: Difference between revisions

m (New page: More on zmrestore can be found at CLI_zmrestore_Network_Edition_only --restoreToTime replays redo log sequences until time specified When using this command please use the -lb argu...)
 
No edit summary
 
(17 intermediate revisions by 5 users not shown)
Line 1: Line 1:
More on zmrestore can be found at [[CLI_zmrestore_Network_Edition_only]]
{{BC|Certified}}
__FORCETOC__
<div class="col-md-12 ibox-content">
=CLI zmrestore restoreToTime Network Edition=
{{KB|{{ZC}}|{{ZCS 7.0}}|{{ZCS 6.0}}|{{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]].


--restoreToTime replays redo log sequences until time specified
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 user@domain.com -restoreToTime <arg> -lb full-xxxxxx


When using this command please use the -lb argument to specify a full backup that took place prior to the time you wish to restore to.
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:


zmbackup -a user@domain.com --restoreToTime <arg> -lb full-200xxxxxx
"2008/05/12 17:03:31"


You can specify an exact time, the incremental backup label, or the redo log sequence to restore to. Restore stops at the earliest possible point in time if more than one point in time restore options are specified.
"2008/05/12 17:03:31 681"


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


Two common ways to write the <arg> are:
2008/05/12-17:03:31-681


YYYY/MM/DD hh:mm:ss
2008/05/12-17:03:31


YYYYMMDD.hhmmss
20080512.170331.681


20080512.170331


Specify date/time in one of these formats:
20080512170331681


2006/08/02 16:55:05 268
20080512170331


2006/08/02 16:55:05
'''''Note''': TimeArguments with blank spaces must be surrounded in quotes.''


20060802.165505.268
For example:


20060802.165505
zmrestore -a user@domain.com -restoreToTime "2008/05/12 17:03:31 268" -lb full-xxxxxx


20060802165505268


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




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 user@domain.com -restoreToTime <timeArgument> -lb full-xxxxxx -ca -pre restored_


Tip: 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:
In this case a new account is created named '''restored_user@domain.com''' (you could then grab out the material you want, imapsync, or choose to run the command without the new target/test account).


zmbackup -a user@domain.com --restoreToTime <arg> -lb full-200xxxxxx -ca -pre restored_


In this case a new account is created named restored_user@domain.com (you could then grab out the material you want, imapsync, or choose to run the command without the new target/test account).
{{Article Footer|ZCS 5.0.x|1/16/2008}}
 
[[Category:Backup and Restore]]
[[Category:Command Line Interface]]
[[Category: ZCS 7.0]]
[[Category: ZCS 6.0]]
[[Category: ZCS 5.0]]

Latest revision as of 23:20, 10 July 2015

CLI zmrestore restoreToTime Network Edition

   KB 2328        Last updated on 2015-07-10  




0.00
(0 votes)

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 user@domain.com -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"

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

2008/05/12-17:03:31

20080512.170331.681

20080512.170331

20080512170331681

20080512170331

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

For example:

zmrestore -a user@domain.com -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 user@domain.com -restoreToTime <timeArgument> -lb full-xxxxxx -ca -pre restored_

In this case a new account is created named restored_user@domain.com (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: https://wiki.zimbra.com/index.php?title=CLI_zmrestore_restoreToTime_Network_Edition_only Date Modified: 2015-07-10



Try Zimbra

Try Zimbra Collaboration with a 60-day free trial.
Get it now »

Want to get involved?

You can contribute in the Community, Wiki, Code, or development of Zimlets.
Find out more. »

Looking for a Video?

Visit our YouTube channel to get the latest webinars, technology news, product overviews, and so much more.
Go to the YouTube channel »

Jump to: navigation, search