Difference between revisions of "CLI zmrestore restoreToTime Network Edition only"

m
(proofreading and formatting)
Line 1: Line 1:
More on zmrestore can be found at [[CLI_zmrestore_Network_Edition_only]]
+
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.
--restoreToTime replays redo log sequences until time specified
 
 
 
 
 
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.
 
  
 
  zmbackup -a user@domain.com --restoreToTime <arg> -lb full-200xxxxxx
 
  zmbackup -a user@domain.com --restoreToTime <arg> -lb full-200xxxxxx
  
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.
+
You can restore to an exact time, the incremental backup label, or the redo log sequence. 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:
 
 
 
 
Two common ways to write the <arg> are:
 
 
 
YYYY/MM/DD hh:mm:ss
 
 
 
YYYYMMDD.hhmmss
 
 
 
 
 
Specify date/time in one of these formats:
 
  
 
2006/08/02 16:55:05 268  
 
2006/08/02 16:55:05 268  
Line 33: Line 19:
 
20060802165505
 
20060802165505
  
 +
For example:
  
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.
+
zmbackup -a user@domain.com --restoreToTime 2006/08/02 16:55:05 268 -lb full-200xxxxxx
  
  
----
+
'''''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.''
  
  
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:
+
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:
  
 
  zmbackup -a user@domain.com --restoreToTime <arg> -lb full-200xxxxxx -ca -pre restored_
 
  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).
+
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).
  
 
[[Category:Command Line Interface]]
 
[[Category:Command Line Interface]]

Revision as of 20:14, 22 January 2008

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.

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

You can restore to an exact time, the incremental backup label, or the redo log sequence. 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:

2006/08/02 16:55:05 268

2006/08/02 16:55:05

20060802.165505.268

20060802.165505

20060802165505268

20060802165505

For example:

zmbackup -a user@domain.com --restoreToTime 2006/08/02 16:55:05 268 -lb full-200xxxxxx


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:

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

Jump to: navigation, search