From 323b737efd9754893ea3172ffbbec13c228a26c6 Mon Sep 17 00:00:00 2001
From: Mark Craig <mark.craig@forgerock.com>
Date: Fri, 28 Sep 2012 11:51:28 +0000
Subject: [PATCH] Additional fix for OPENDJ-601: Syntax for offline backup is incorrect

---
 opends/resource/man/man1/restore.1 |   36 +++++++++++++++++++++++++++++++++---
 1 files changed, 33 insertions(+), 3 deletions(-)

diff --git a/opends/resource/man/man1/restore.1 b/opends/resource/man/man1/restore.1
index 03846ae..9c14f0e 100644
--- a/opends/resource/man/man1/restore.1
+++ b/opends/resource/man/man1/restore.1
@@ -2,12 +2,12 @@
 .\"     Title: restore
 .\"    Author: 
 .\" Generator: DocBook XSL-NS Stylesheets v1.76.1 <http://docbook.sf.net/>
-.\"      Date: 07/17/2012
+.\"      Date: 09/28/2012
 .\"    Manual: Tools Reference
 .\"    Source: OpenDJ 2.5.0
 .\"  Language: English
 .\"
-.TH "RESTORE" "1" "07/17/2012" "OpenDJ 2\&.5\&.0" "Tools Reference"
+.TH "RESTORE" "1" "09/28/2012" "OpenDJ 2\&.5\&.0" "Tools Reference"
 .\" -----------------------------------------------------------------
 .\" * Define some portability stuff
 .\" -----------------------------------------------------------------
@@ -212,7 +212,7 @@
 .RE
 .SH "EXAMPLES"
 .PP
-The following example schedules a restore as a task to begin immediately\&.
+The following example schedules a restore as a task to begin immediately while OpenDJ directory server is online\&.
 .sp
 .if n \{\
 .RS 4
@@ -225,6 +225,36 @@
 .if n \{\
 .RE
 .\}
+.PP
+The following example restores data while OpenDJ is offline\&.
+.sp
+.if n \{\
+.RS 4
+.\}
+.nf
+$ /path/to/OpenDJ/bin/stop\-ds
+Stopping Server\&.\&.\&.
+\&.\&.\&.
+$ /path/to/OpenDJ/bin/restore \-\-backupDirectory /path/to/OpenDJ/bak/userRoot
+ \-\-listBackups
+Backup ID:          20120928102414Z
+Backup Date:        28/Sep/2012:12:24:17 +0200
+Is Incremental:     false
+Is Compressed:      false
+Is Encrypted:       false
+Has Unsigned Hash:  false
+Has Signed Hash:    false
+Dependent Upon:     none
+
+$ /path/to/OpenDJ/bin/restore \-\-backupDirectory /path/to/OpenDJ/bak/userRoot
+ \-\-backupID 20120928102414Z
+[28/Sep/2012:12:26:20 +0200] \&.\&.\&. msg=Restored: 00000000\&.jdb (size 355179)
+$ /path/to/OpenDJ/bin/start\-ds
+[28/Sep/2012:12:27:29 +0200] \&.\&.\&. The Directory Server has started successfully
+.fi
+.if n \{\
+.RE
+.\}
 .SH "COPYRIGHT"
 .br
 Copyright \(co 2011-2012 ForgeRock AS

--
Gitblit v1.10.0