restoresnapshots CLI command


Use this command to restore data from archives for a specified period. You can also use this command to see the status of or cancel an ongoing restore process. 

Related topic

Syntax

Note

Before you run the command, note the following points:

restoresnapshots -u <username> -w <password> -p <port> -d <hostname> -action <action> -l [locale] -s[Protocol to connect with IT Data Analytics] -retentionDays [number of days]


  • Angle brackets (< >) indicate a variable value that needs to be user defined.
  • Square brackets ([ ]) indicate optional parameters.

The following table describes the parameters used in the syntax:

Example inputs

The following example provides the input for restoring data for a specified period:

restoresnapshots -u admin -w admin12345 -p 9797 -d localhost -action restore -startDate 2016-10-10 -endDate 2016-12-12 -retentionDays 4

The following example provides the input to get the status of the ongoing restore process:

restoresnapshots -u admin -w admin12345 -p 9797 -d localhost -action status -retentionDays 4

The following example provides the input to cancel the ongoing restore process:

restoresnapshots -u admin -w admin12345 -p 9797 -d localhost -action cancel -retentionDays 4

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*