To edit options before you create the job definition, click Options. Set
the job definition options.
Destination
Set the restore destination.
Restore to original instanceSelect to restore to the original
instance.
Restore to primary instanceWhen performing restore operations
in an SQL Always On environment, select to restore the database to the primary instance of the
Always On Availability Group and add the database back to the group
Restore to alternate instanceSelect to restore to a local
destination different from the instance, then select the alternate location from available servers.
When performing restore operations in an SQL Always On environment using test mode, the source
availability database is restored to the selected target instance.
When performing restore
operations in an SQL Always On environment using production mode, the restored database is added to
the target availability group if the destination instance is a primary replica. If the destination
instance is a secondary replica of the target availability group, the database is restored to the
secondary replica and left in restoring state.
If the destination availability group has the
automatic seeding option enabled, the secondary database file paths are synchronized with the
primary database. If the primary database log is not truncated, the secondary database may be added
to the availability group by SQL.
New Database NameClick the New Database Name
field to enter an optional alternate name for the database.
Alternate vSnapWhen
restoring from a restore point that was offloaded to a cloud resource or repository server, a vSnap
server is used as a gateway to complete the operation. By default, the vSnap server used to complete
the restore is the same vSnap server used to complete the backup and offload operations. To reduce
load, an alternate vSnap server can be selected to serve as the gateway to complete the restore. To
select an alternate vSnap server when restoring a specific, non-latest restore point from a cloud
resource or repository server, select Use alternate vSnap server for the restore
job, then select a server from the Select alternate vSnap
menu.
Restore TypeSet the SQL Restore job to run
in test, production, or Instant Access mode by default. Once the job is created, it can be run in
test, production, or Instant Access mode through the Job Sessions
pane.
Recovery OptionsSet the recovery options:
- No Recovery
- Sets the selected database to a RESTORING state. If you are managing transaction log backups
without using IBM Spectrum Protect
Plus, you can manually restore
log files, and add the database to an availability group, assuming that the lsn of the secondary and
primary database copies meets the criteria. The No Recovery option does not
support production mode restores to SQL Always On groups.
- Recover until end of backup
- Restore the selected database to the state at the time the backup was created.
- Recover until specific point in time
- When log backup is enabled through an SQL backup job definition, point-in-time restore options
will be available when creating an SQL restore job definition. Select one of the following options,
and then click Save:
- By Time. Select this option to configure a point-in-time recovery by a
specific date and time.
- By Transaction ID. Select this option to configure a point-in-time
recovery by transaction ID.
In a standalone restore operation, IBM Spectrum Protect
Plus finds the restore points that directly proceed
and follow the selected point-in-time. During the recovery, the older data backup volume and the
newer log backup volume are mounted. A temporary restore point is created if the point-in-time is
after the last backup operation.
When performing restore operations in an SQL Always On
environment using test mode, the restored database will join the instance where the availability
group resides.
When performing restore operations in an SQL Always On environment using
production mode, the restored Primary database will be joined to the availability group. If the
destination availability group has the automatic seeding option enabled, the secondary database file
paths are synchronized with the primary database. If the primary database log is not truncated, the
secondary database may be added to the availability group by SQL.
Application OptionsSet the application options:
- Overwrite existing database
- Enable to allow the restore job to overwrite the selected database. By default, this option is
disabled.
Note: Before performing restore operations in a SQL Always On environment using
production mode with the Overwrite existing database option, ensure that the database
is not present on the replicas of the target availability group. To do so, you must manually clean
up the original databases (to be overwritten) from all replicas of the target availability group.
- Maximum Parallel Streams per Database
- Set the maximum data stream from the backup storage per database. This setting applies to each
database in the job definition. Note that multiple databases can still be restored in parallel if
the value of the option is set to 1. Multiple parallel streams might improve restore speed, but high
bandwidth consumption might affect overall system performance.
This option is applicable only when
restoring an SQL Server database to its original location using its original database name.
Advanced OptionsSet the advanced job
definition options:
- Run cleanup immediately on job failure
- Enable to automatically clean up allocated resources as part of a restore if the recovery
fails.
- Allow session overwrite
- Select this option to replace an existing database with the same name during recovery. When an Instant Disk Restore is performed for a database and another database with the same name is already running on the destination host/cluster, IBM Spectrum Protect Plus shuts down the existing database before starting up the recovered database. If this option is not selected, the restore job fails when IBM Spectrum Protect Plus encounters an existing running database with the same name.
- Continue with restores of other databases even if one fails
- Toggle the recovery of a resource in a series if the previous resource recovery fails. If
disabled, the Restore job stops if the recovery of a resource fails.
- Mount Point Prefix
- For instant access restore operations, specify the prefix for the path where the mount point is
to be directed.
Script SettingsPre-scripts and post-scripts are scripts that
can be run before or after a job runs at the job level. Batch and PowerShell scripts are
supported.
In the Pre-script or
Post-script section, select an uploaded script and an application or script
server where the script will run. To select an application server where the script will run, clear
the Use Script Server check box. Scripts and script servers are configured
through the page.
To continue running the job if the script associated with the job fails,
select Continue job/task on script error.
When this option is enabled,
if a pre-script or post-script completes processing with a non-zero return code, the backup or
restore operation is attempted and the pre-script task status is reported as COMPLETED. If a
post-script completes with a non-zero return code, the post-script task status is reported as
COMPLETED.
When this option is disabled, the backup or restore is not attempted, and the
pre-script or post-script task status is reported as FAILED.