Variables available in the task scripts for the restore operation

Contributors Download PDF of this page

SnapManager provides context information in the form of environment variables related to the restore operation that is being performed. For example, your script can retrieve the name of the original host and the label of the backup that is restored.

The following table lists the environment variables that you can use in your scripts:

Variables Description Format

SM_OPERATION_ID

Specifies the ID of the current operation

string

SM_PROFILE_NAME

Specifies the name of the profile used

string

SM_HOST

Specifies the host name of the database

string

SM_OS_USER

Specifies the operating system (OS) owner of the database

string

SM_OS_GROUP

Specifies the OS group of the database

string

SM_BACKUP_TYPE

Specifies the type of the backup (online, offline, or auto)

string

SM_BACKUP_LABEL

Specifies the backup label

string

SM_BACKUP_ID

Specifies the backup ID

string

SM_BACKUP_PROFILE

Specifies the profile used for the backup

string

SM_RECOVERY_TYPE

Specifies the recovery configuration information

string

SM_VOLUME_RESTORE_MODE

Specifies the volume restore configuration

string

SM_TARGET_FILER_NAME

Specifies the target storage system name Note: If more than one storage system is used, then the storage system names must be separated by commas.

string

SM_TARGET_VOLUME_NAME

Specifies the target volume name Note: The target volume name must be prefixed with storage device name, for example, SM_TARGET_FILER_NAME/SM_TARGET_VOLUME_NAME.

string

SM_HOST_FILE_SYSTEM

Specifies the host file system

string

SM_SNAPSHOT_NAMES

Specifies the Snapshot list Note: Name of the Snapshot copies must be prefixed with the storage system name and volume name. Names of the Snapshot copies are separated by commas.

string array

SM_ASM_DISK_GROUPS

Specifies the ASM Disk group list

string array

SM_ARCHIVE_LOGS_DIRECTORY

Specifies the archive logs directory Note: If the archive logs are located in more than one directory, then the names of those directories are separated by commas.

string array

SM_REDO_LOGS_DIRECTORY

Specifies the redo logs directory Note: If the redo logs are located in more than one directory, then the names of those directories are separated by commas.

string array

SM_CONTROL_FILES_DIRECTORY

Specifies the control files directory Note: If the control files are located in more than one directory, then the names of those directories are separated by commas.

string array

SM_DATA_FILES_DIRECTORY

Specifies the data files directory Note: If the data files are located in more than one directory, then the names of those directories are separated by commas.

string array