Restore Job Specification
Restore job, what is it?
A restore job is a task that the application performs. As part of this job, a database’s backup that has been created via the
backup-job command is restored.
SqlBak-CLI runs a restore job via the following steps:
- Downloads a backup from a storage
- Uncompresses backup
- Restores backup
The information needed to complete these steps is described in a special JSON file that must be passed as a parameter to the
--job-settings argument of the
Data to connect to a database, that should be restored. The fields for connection are completely identical to the
sourcesection in the backup settings, with the exception of the
restore_itemsfield, this field lists the items that must be restored.
The list of storage locations where backups are stored is specified here. Multiple storage locations can be used. Data to set a connection to storage where backups are stored. The fields are completely similar to the
destinationssection in a backup job, with the exception of the
keep_settingsfield, it is not needed for a restore process.
The settings for unzipping a backup are specified, the fields are similar to a backup job.
The name of the restore job. Displayed in the log.
Path to a temporary directory. If this path is not specified, the paths specified in the
sqlbak-cli-path.jsonfile in the application’s installation directory are used.
See examples section.