From 6df6635f1250c399a2f39d87d0534301ce4c22d7 Mon Sep 17 00:00:00 2001 From: kenneth_suter <kenneth_suter@localhost> Date: Fri, 31 Aug 2007 15:43:58 +0000 Subject: [PATCH] Exposes the reversion functionality of the upgrader (issue 2169). Originally it was intended to be exposed as a new script but in order to avoid the negativity of having a command devoted to undoing the upgrade and to avoid more scripts in the top-level directory, I've exposed the functionality as 2 new options in the existing upgrade script. I will update the Wiki with documentation for these new options soon. --- opends/src/messages/messages/quicksetup.properties | 53 +++++++++++++++++++++++++++++++++++++++++++---------- 1 files changed, 43 insertions(+), 10 deletions(-) diff --git a/opends/src/messages/messages/quicksetup.properties b/opends/src/messages/messages/quicksetup.properties index e1c8552..107dbc5 100644 --- a/opends/src/messages/messages/quicksetup.properties +++ b/opends/src/messages/messages/quicksetup.properties @@ -315,6 +315,8 @@ INFO_ERROR_DETERMINING_SERVER_STATE=Failed to determine the server's state. INFO_ERROR_DETERMINING_SVN_REV=Error determining installation's Subversion \ revision number. +INFO_ERROR_DETERMINING_REVERSION_BUILD=Error determining upgrade build \ + information. INFO_ERROR_DETERMINING_UPGRADE_BUILD=Error determining upgrade build \ information. INFO_ERROR_DISABLING_WINDOWS_SERVICE=Error Disabling Windows service. Try to \ @@ -364,7 +366,9 @@ INFO_ERROR_LOGGING_OPERATION=Error writting operation details to log. INFO_ERROR_OPTION_REQUIRED=Option %s is required. INFO_ERROR_OPTION_REQUIRED_OR_INTERACTIVE=Option %s is required when invoking \ - this command in non-interactive mode. See the usage statement. + this command in non-prompting mode. See the usage statement. +INFO_ERROR_OPTIONS_REQUIRED_OR_INTERACTIVE=Additional options are required \ + when invoking this command in non-prompting mode. See the usage statement. INFO_ERROR_PARSING_OPTIONS=Error parsing options. INFO_ERROR_POOLING_INITIALIZATION=Error reading the progress of the \ initialization with contents from server %s. @@ -452,6 +456,7 @@ INFO_GENERAL_SEE_FOR_HISTORY=See %s for a history installation history. INFO_GENERAL_SERVER_STARTED=started INFO_GENERAL_SERVER_STOPPED=stopped +INFO_GENERAL_UNKNOWN=Unknown INFO_GENERAL_UNSET=Unset INFO_GENERAL_UNSPECIFIED=Unspecified INFO_GENERAL_UNSUPPORTED=Unsupported @@ -747,19 +752,22 @@ supported. INFO_REVERT_ERROR_EMPTY_HISTORY_DIR=There are no existing backup locations \ from prior upgrades. The 'history' directory is empty. -INFO_REVERT_ERROR_INVALID_FILES_DIR=The upgrade backup directory does not \ +INFO_REVERT_ERROR_INVALID_FILES_DIR=The reversion archive directory does not \ appear to contain files backed up from an invocation of the upgrade tool. -INFO_REVERT_ERROR_NO_DIR=ERROR: No reversion directory specified. You must \ - specify one of %s +INFO_REVERT_ERROR_NO_DIR=ERROR: No reversion archive directory specified. \ + You must specify one of %s INFO_REVERT_ERROR_NO_HISTORY_DIR=There are no existing backup locations from \ prior upgrades. The 'history' directory does not exist. -INFO_REVERT_ERROR_NOT_DIR_FILES_DIR=The upgrade backup directory is not a \ +INFO_REVERT_ERROR_NOT_DIR_FILES_DIR=The reversion archive directory is not a \ directory. -INFO_REVERT_ERROR_NULL_FILES_DIR=The upgrade backup directory is invalid or \ +INFO_REVERT_ERROR_NULL_FILES_DIR=The reversion archive directory is invalid or \ could not be determined. INFO_REVERT_LAUNCHER_USAGE_DESCRIPTION=This utility reverts the current \ installation of the Directory Server to a version prior to running the \ upgrade utility. +INFO_REVERT_CONFIRM_TITLE=Confirm Reversion +INFO_REVERT_CONFIRM_PROMPT=This installation will be reverted to version \ + %s using the files in %s. INFO_REVIEW_CREATE_BASE_ENTRY_LABEL=Only Create Base Entry (%s) INFO_REVIEW_CREATE_SUFFIX=Create New Base DN %s.Base DN Data: %s INFO_REVIEW_IMPORT_AUTOMATICALLY_GENERATED=Import Automatically-Generated \ @@ -1028,6 +1036,12 @@ INFO_UPGRADE_CHOOSE_VERSION_REMOTE_WEEKLY=Weekly Builds INFO_UPGRADE_CHOOSE_VERSION_UNABLE_TO_ACCESS_BUILD_INFO=Unable to access \ remote build information. +INFO_UPGRADE_OPERATION_PROMPT=Would you like to upgrade this installation to \ + a newer version or revert to an older version? +INFO_UPGRADE_OPERATION_REVERSION=Revert to a previous version +INFO_UPGRADE_OPERATION_UPGRADE=Upgrade to a newer version +INFO_UPGRADE_OPERATION_REVERSION_RESPONSE=Please rerun this command specifying \ + options that indicate a reversion operation. See the usage guide for details. INFO_UPGRADE_FILE_PROMPT=Enter the name and path of the OpenDS install file \ (.zip): INFO_UPGRADE_LAUNCHER_DESCRIPTION=This utility may be used to upgrade the \ @@ -1040,10 +1054,16 @@ INFO_UPGRADE_LAUNCHER_LAUNCHING_CLI=Launching command line upgrade... INFO_UPGRADE_LAUNCHER_LAUNCHING_GUI=Launching graphical upgrade... INFO_UPGRADE_LAUNCHER_USAGE_DESCRIPTION=This utility may be used to upgrade \ - the Directory Server to a newer version. Use of this tool assumes that you \ - have already downloaded an OpenDS install package (.zip) file. You can also \ - upgrade your server using the Java Web Start version of this tool by visiting \ - the OpenDS web site at www.opends.org. + the Directory Server to a newer version or revert to a previous version.%n%n\ + When using this tool to upgrade OpenDS you should first downloaded an OpenDS \ + install package (.zip) file and specify its location using the -f/--file \ + option. You can also upgrade your server using the Java \ + Web Start version of this tool by visiting the OpenDS web site at \ + www.opends.org.%n%n\ + When using the tool to revert to a previous version you must either indicate \ + that you want to revert to version before the most recent upgrade using the \ + -r/--revertMostRecent option or specify the location of a reversion archive \ + using the -a/--reversionArchive option.%n INFO_UPGRADE_LOCATION_LABEL=Server to Upgrade: INFO_UPGRADE_LOCATION_TOOLTIP=File system location of the build that will be \ upgraded @@ -1061,6 +1081,19 @@ INFO_UPGRADE_MOD_IGNORE=Attribute or value already exists: %s INFO_UPGRADE_MOD_NO_SCHEMA=Processed server modifications (schema checking \ disabled): %s +INFO_REVERSION_ORACLE_WARNING=Reversion warning +INFO_REVERSION_ORACLE_ACTION=Upgrade requires manual action +INFO_REVERSION_ORACLE_INFO=Upgrade information +INFO_REVERSION_ORACLE_UNSUPPORTED=Upgrade not supportedfrom version %s to \ + version %s is not supported. To upgrade You must uninstall the current \ + server, install the new server, and manually migrate your data. +INFO_REVERSION_TYPE_PROMPT=How would you like to specify the archive used \ + to revert this instance? +INFO_REVERSION_TYPE_PROMPT_RECENT=Use the most recent versioned archive +INFO_REVERSION_TYPE_PROMPT_FILE=Manually specify a reversion archive directory +INFO_REVERSION_DIR_PROMPT=Select a reversion archive directory: +INFO_REVERSION_DIR_WAIT=Initializing archives... +INFO_REVERSION_DIR_FROM_UPGRADE=%s archived on %s INFO_UPGRADE_ORACLE_ACTION=Upgrade requires manual action INFO_UPGRADE_ORACLE_INFO=Upgrade information INFO_UPGRADE_ORACLE_SUCCESS=Upgrade from version %s to version %s is \ -- Gitblit v1.10.0