pgbackrest.git / summary / log / commit / refs
commit b4d434b41c8302e48cf2f2dcec8a465378507b73
Author: David Steele <david@pgmasters.net>
Date: Wed Jan 31 22:34:27 2018 +0000
Update stanza-create --force documentation to urge caution when using.
Suggested by Jason O'Donnell.
doc/xml/reference.xml | 4 +++-
doc/xml/release.xml | 10 ++++++++++
src/config/define.auto.c | 10 ++++++----
3 files changed, 19 insertions(+), 5 deletions(-)
diff --git a/doc/xml/reference.xml b/doc/xml/reference.xml
index cfb752a6e..66af21897 100644
--- a/doc/xml/reference.xml
+++ b/doc/xml/reference.xml
@@ -1158,7 +1158,9 @@
<option id="force" name="Force">
<summary>Force stanza creation.</summary>
- <text>If the required stanza information does not exist in the repository but backups or WAL segments do exist, then this option can be used to force the stanza to be created from the existing data in the repository. This is most likely to be useful after corruption or an incomplete restore of the repository from elsewhere.</text>
+ <text><b>Caution</b>: Use <br-option>--force</br-option> only as a last resort, when all else fails. If data is missing from the repository then the recreated <file>.info</file> files will likely be corrupt.
+
+ If the required stanza <file>.info</file> files do not exist in the repository but backups or WAL segments do exist, then this option can be used to force the stanza to be created from the existing data in the repository. This is most likely to be useful after corruption or an incomplete restore of the repository from elsewhere.</text>
<example>n</example>
</option>
diff --git a/doc/xml/release.xml b/doc/xml/release.xml
index f98b7a9b6..3a757915c 100644
--- a/doc/xml/release.xml
+++ b/doc/xml/release.xml
@@ -137,6 +137,16 @@
</release-item>
</release-feature-list>
+ <release-improvement-list>
+ <release-item>
+ <release-item-contributor-list>
+ <release-item-ideator id="odonnell.jason"/>
+ </release-item-contributor-list>
+
+ <p>Update <cmd>stanza-create --force</cmd> documentation to urge caution when using.</p>
+ </release-item>
+ </release-improvement-list>
+
<release-development-list>
<release-item>
<p>Add coding standards document.</p>
diff --git a/src/config/define.auto.c b/src/config/define.auto.c
index 916416bfc..63e5f80c6 100644
--- a/src/config/define.auto.c
+++ b/src/config/define.auto.c
@@ -1516,10 +1516,12 @@ ConfigDefineOptionData configDefineOptionData[] = CFGDEFDATA_OPTION_LIST
CFGDEFDATA_OPTION_OPTIONAL_HELP_SUMMARY("Force stanza creation.")
CFGDEFDATA_OPTION_OPTIONAL_HELP_DESCRIPTION
(
- "If the required stanza information does not exist in the repository but backups or WAL segments do exist, "
- "then this option can be used to force the stanza to be created from the existing data in the repository. "
- "This is most likely to be useful after corruption or an incomplete restore of the repository from "
- "elsewhere."
+ "Caution: Use --force only as a last resort, when all else fails. If data is missing from the repository then "
+ "the recreated .info files will likely be corrupt.\n"
+ "\n"
+ "If the required stanza .info files do not exist in the repository but backups or WAL segments do exist, then "
+ "this option can be used to force the stanza to be created from the existing data in the repository. This "
+ "is most likely to be useful after corruption or an incomplete restore of the repository from elsewhere."
)
)
[parent: bacc08792dae]