Restoring project and server information using validate_restore
You can use validate_restore
in your Validate server installation's bin
directory to restore both project and server information.
The parameters are shown in the table below.
Options
Name | Description |
---|---|
--db-host | Override the database server host name. The specified value will not be written to the target projects root; use when DNS resolution fails. (default: None) |
--db-password |
Specify the database server password (default: <Empty>) |
--db-port | Override the database server port. The value specified will not be written to the target projects root; use if the configured port is different than the external port. (default: None) |
--db-user | Specify the database server user (default: kw) |
--help, -h | Show this help message and exit |
--log-level | Log level to filter the type and severity of logged events. Accepted values: DEBUG, INFO, WARNING, ERROR, CRITICAL. (default: INFO) |
--restore-server-configuration | (Step 1 of restoring a server) Copy projects root configuration files to the target projects root. The servers for the target projects root must be stopped. (default: False) |
--restore-server-settings |
(Step 2 of restoring a server) Restore server settings to the target projects root. Prerequisites: must be run after |
--source |
Specify the path to the Validate server or project backup to restore from (default: None) |
--ssl | Specify if the target server has SSL enabled. The specified value will not be written to the target projects root. (default: False) |
--target | Specify the path to the target projects root archive to restore the backup to (default: None) |
--validate-installation |
Specify the path to the Validate installation directory, for example: |
--verbose |
Enable verbose logging for some internal backup commands (default: False) |
--web-host | Override the Validate server host name. The value specified will not be written to the target projects root; use when DNS resolution fails. (default: None) |
--web-port | Override the Validate server port. The value specified will not be written to the target projects root; use if the configured port is different than the external port. (default: None) |
Restoring a project's information
You can restore a project backup that was created using validate_backup to a Validate server.
Prerequisites:
- The server where you will restore the project is running
- The project does not exist on the server
You must specify the following parameters:
--source
(The path to the Validate server or project backup to restore from)--target
(The path to the target projects root archive to restore the backup to)--validate-installation
(The path to the Validate installation directory)
You cannot restore projects from multiple source roots directly into the same target root. A target projects root used for a restore operation must only contain projects and server configuration data from a single source projects root.
Restoring a project from one source root into a target root that already contains data from a different source root is not supported, as it can lead to data conflicts and errors.
If you need to restore multiple projects that were backed up from different source roots into a shared destination:
- First, restore each project into its own separate target projects root (using the
--restore
option). - Then, import each restored project into the final shared projects root.
To restore a project's information
Run the following command:
<validate installation>/bin/validate_restore(.cmd) --target <projects root path> --validate-installation <validate installation path> --source <source backup (archive) path>
Restoring a server's information
To restore a backup of your Validate server's non-project configuration and information, follow the steps below.
To restore a server's information
- To create a new projects root (where you will restore the backup), run the following command:
kwservice -r <projects root> setup --restore
- (Optional) Configure the new projects root with host and port information for web, database, and license host services. For example:
kwservice -r <projects root> set-service-property web port 8082
- To restore the server configuration from the backup, run the following command:
<validate installation>/python validate_restore(.cmd) <optional parameters> --restore-server-configuration
- If your IdP redirects URLs to the new server, confirm that the URLS are still valid.
-
To start the projects root, run the following command:
kwservice <optional parameters> start
- To restore the remaining server information, run the following command:
<validate installation>/python validate_restore(.cmd) <optional parameters> --restore-server-settings
A copy of your server information is now restored. To restore projects to this server, see Restoring a project's information.