Cloud Data Manager

RESTVOL

The RESTVOL command restores a volume from a volume full dump, either to the same target volume name or to a different target volume.

RESTVOL - Logic

Only one volume can be restored per request. The NEWVOL parameter must always be specified, to avoid accidental override of the source volume.

RESTVOL - Syntax
M9CLI RESTVOL <volume> NEWVol(<volume>)
 [DATE(yyyy/mm/dd)|DATERange(yyyy/mm/dd-yyyy/mm/dd)]
 [ENTry(<integer>)|UNIQueid(<uniqueId>)] 
 [COPYVolid]
RESTVOL - Required parameters

volume

A specific volume serial to be restored.

NEWVol(<volume>)

The target volume serial. The target volume has to be specified even when it’s the same as the source, to avoid accidental overriding a live volume. When the target volume is different from the source volume, COPYVOLID has to be specified.

RESTVOL - Optional Parameters

Option

[Short option]

Description

Format

Examples

DATE

Requesting for volume full dump copy that was created on a specific date only. DATE and DATERANGE are mutually exclusive

yyyy/mm/dd

2019/08/15

DATERANGE

[DATER]

Requesting for volume full dump copy that was created on a specific date range. DATERANGE and DATE are mutually exclusive

yyyy/mm/dd-yyyy/mm/dd

2019/01/01-2019/08/15

ENTRY

[ENT]

A positive sequential number from 0, 1, 2 and so on, representing the available entries of a volume full dump copy, according to the specified criteria.

<integer>

0 - for the latest copy (the default). 1 - for the copy prior to the latest, and so on.

UNIQueid

[UNIQ]

An 8-character id that when combined with the volume name identifies each volume full dump copy. Using UNIQueid, you can refer to a specific copy without having to specify any additional filters. UNIQueid and ENTRY are mutually exclusive.

<xxxxxxxx> 8 characters

UNIQueid can be taken from a previous LISTVOL command’s output, to be used in RESTVOL.

COPYVOLID

[COPYV]

Specifies that the volume serial number (VOLID) from the input volume is to be copied to the output volume. This parameter is needed when restoring a source volume to a different target volume. The target volume is specified in the required parameter NEWVOL.

-

RESTVOL - Output

The output displays the given RESTVOL command and parameters, followed by the requested information:

VOLUME <volume> WAS RESTORED FROM A FULL VOLUME DUMP MADE ON <yyyy/mm/dd> at <hh:mm:ss>

If the request fails, the complete DFDSS log will be displayed. If the requesting user is not available, the first 100 records of the output will be printed in the executing agent's log.

RESTVOL - Examples

The following examples demonstrate use of the command.

Restoring the latest available volume full dump copy, without replace

M9CLI RESTVOL M9RES1 NEWV(M9TST1)

By default, the restore takes the latest copy and restores it to the target volume, as specified by the NEWVOL parameter.

Restoring a volume full dump copy, with replace

M9CLI RESTVOL M9RES1 NEWV(M9RES1) COPYVOLID

When replacing the source volume with the volume full dump copy, use the COPYVOLID parameter.

Restoring a volume full dump copy from a specific date

M9CLI RESTVOL M9RES1 NEWV(M9TST1) DATE(2020/04/24)

The selected copy for restore will be the latest copy created on that date, unless specified otherwise (see examples using ENTRY or UNIQUEID).

Restoring a volume full dump copy from a date range

M9CLI RESTVOL M9RES1 NEWV(M9TST1) DATER(2020/04/24-2020/04/01)

The selected copy for restore will be the latest copy created within the date range, unless specified otherwise (see examples using ENTRY or UNIQUEID).

Restoring a volume full dump copy using ENTRY or UNIQUEID

When restoring a volume full dump copy other than the latest, it is recommended to LISTVOL the volume first for the available copies:

CLI_RESTVOL.png

The restore can be executed using the same search criteria specified on the LIST command, where the specific copy is selected using ENTRY:

M9CLI RESTVOL M9RES1 NEWV(M9TST1) DATE(2020/04/24) ENTRY(2)

There is no need to specify any additional search criteria when using the UNIQUEID parameter:

M9CLI RESTVOL M9RES1 NEWV(M9TST1) UNIQUEID(F2065KSF)