uniderbyrestore

The uniderbyrestore command line enables you to restore a UVMS Derby database from a backup generated with the uniderbybackup command or with the UVMS embedded hot backup system (refer to the Univiewer User Guide, section “Nodes> Node Settings>Optional Services”).

All the content of the Derby database will be overwritten with the backup data.

Make sure UVMS is stopped before attempting to restore the database whatever the backup mode.

Carry out a full backup using the unibackup -l FULL command prior to running uniderbyrestore.

The uniderbyrestore command is located in the univiewer_server\<nodename>\app\bin directory.

Syntax:

uniderbyrestore [-h] [-s -b <backup directory>] -mode SNAPSHOT|ROLLFORWARD

parameter

Description

-h

Optional. Displays the usage text

-s

Optional. Silent mode
When the silent option is set, all the parameters must be provided in the command line. (-b mandatory)
When the silent option is not specified, the command line will ask the user all the parameters that have not been provided in the command.

-b <arg>

Optional. Full path of the backup directory.
Mandatory with -s.
If the path contains spaces, in silent mode you must enclose it with quotes.

-mode <arg>

Optional. Restoration mode: Two restoration modes are supported:

- SNAPSHOT: restore a snapshot backup.

- ROLLFORWARD: restore a backup using roll forward recovery. This mode will work only if the active logs are not corrupted. Otherwise, use the SNAPSHOT option.

Example

uniderbyrestore –s -b D:\Backups\Derby -mode ROLLFORWARD

Restore the Derby UVMS database from the backup saved in the "D:\Backups\Derby" directory. Archive logs and active logs will be replayed to restore the database to its most recent state. Roll-forward restore can only be applied to a backup made in ROLLFORWARD mode.