Restoring Files from Full Backup
For file-level restore from full backups created with Veeam Agent for Oracle Solaris 1.0, the product offers the ubax utility. To restore a file or directory, you must complete the following steps:
- Prepare the restore script or choose the media library entry.
- Restore files and/or directories specified in the backup script or media library entry.
: restore script |
To restore data from a full backup using the media library, you must specify the necessary media library entry in the command used to perform restore. To learn more, see Performing Restore.
To view a list of media library entries, on the machine that runs Veeam Agent for Oracle Solaris 1.0 use the following command:
where </path/to/script> is a path to the restore script.
To perform restore with the ubax command, you can use the following options:
Option | Required | Description |
---|---|---|
--restore | Yes | Instructs ubax to perform restore. |
--restore_all | No | Defines that all data from the backup file residing in the default backup location must be restored. Without this option specified, you must specify a path to the restore script that contains a list of files and/directories to restore. |
--acl=<n> | No | Defines whether to use POSIX Access Control Lists (ACLs) during restore. Possible values:
The default value is 1. |
--device=<device> | No | Specifies the name of the backup location where the backup file resides. The backup location must be defined in a configuration file. |
--device_file=<file> | No | Specifies the configuration file where backup location settings are defined. The default file with information about backup locations is /etc/veeam/devices.ini. |
--ini_file=<file.ini> | No | Specifies the configuration file where settings for the ubax utility are defined. The default configuration file is /etc/veeam/ubax.ini. |
--mlfile=<file> | No | Specifies a path to the media library entry file that you want to use for data restore. If no file is specified, the latest media library entry will be used for data restore. |
--overwrite=<n> | No | Defines whether to overwrite the existing files and directories during restore. Possible values:
The default value is 0. |
--path_prefix | No | Specifies the path prefix that will be added to all restored paths. |
--read_ml=<n> | No | Defines whether to use the backup script or media library for data restore. Possible values:
The default value is 0. |
--set_owner=<n> | No | Defines whether to preserve original file ownership during restore. Possible values:
The default value is 1. |
--set_perms=<n> | No | Defines whether to preserve original file permissions during restore. Possible values:
The default value is 1. |
--set_time=<n> | No | Defines whether to preserve original file time during restore. Possible values:
The default value is 1. |
--snumber=<n> | No | Specifies the number of the dataset from which to restore data. |
Encryption Options | No | You can specify data encryption options for the restore process. To learn more, see Data Encryption Options. |
Logging Options | No | You can specify logging options for the ubax utility. To learn more, see Logging Options. |
You can use the following options of the ubax command to specify data encryption settings:
Option | Required | Description |
---|---|---|
--encryption_key=<key> | No | Specifies the encryption key used for backup. ASK should be used if the key is to be entered interactively, or SESSION if a session key is to be automatically generated. |
--encryption_ref=<keyname> | No | Specifies the encryption key used for backup by reference to the key repository file. |
--encryption_type=<n> | No | Specifies the encryption type. Possible values:
The default value is 0. |
--generate_key=<keyname> | No | Generates a new key with the name <keyname>. |
--key_repository=<file> | No | Specifies the path to the encryption key repository file. |
--passphrase_hash_type=<n> | No | Specifies the type of hashing used to generate an encryption key from a passphrase. Possible values:
|
You can use the following options of the ubax command to specify logging settings:
Option | Required | Description |
---|---|---|
--append_log | No | Specifies whether to overwrite or append the log file. Possible values:
The default value is 0. |
--errfile=<file> | No | Specifies the error file. Note that this option does not use the --logdir option to form a path to the error file. |
--err_level=<n> | No | Specifies the error file output level (the default value is 4). Note that the error level should be equal to or less than the logging level. For details, see the description of the log_level option below. |
--logdir=<dir> | No | Specifies the path to the directory where the backup.log log file will be created. The default path is /var/log/veeam. |
--logfile=<file> | No | Specifies the log file name. Note that this option does not use the --logdir option to form a path to the log file. |
No | Specifies the log file and screen output level. The following values are available:
The default value is 5. | |
--show_skipped=<n> | No | Defines whether to show skipped files and directories. Possible values:
The default value is 0. |
--syslog=<n> | No | Defines whether to use syslog to record fatal events. Possible values:
The default value is 0. |
The following example displays a command to restore data using a media library entry.