sql_db_export
Export an SQL database from a specified recovery point to a target SQL Instance and Host. Requires database data and log file name directory paths.
Arguments
Name | Type | Description | Choices |
db_name | str | The name of the database to be exported. | |
date | str | The recovery_point date formated as 'Month-Date-Year' (ex: 8-9-2018). | |
time | str | The recovery_point time formated as |
Keyword Arguments
Name | Type | Description | Choices | Default |
sql_instance | str | The SQL instance name with the database to be exported. | ||
sql_host | str | The SQL Host of the database/instance to be exported. | ||
target_instance_name | str | Name of the Microsoft SQL instance for the new database. | ||
target_hostname | str | Name of the Microsoft SQL host for the new database. | ||
target_database_name | str | Name of the new database. | ||
target_data_file_path | str | The target path to store all data files. | ||
target_log_file_path | str | The target path to store all log files. | ||
target_file_paths | list | A list of dictionary objects each with key value pairs: {'logicalName': 'Logical name of the database file', 'exportPath': 'The target path for the database file', 'newLogicalName': 'New logical name for the database file', 'newFilename': 'New filename for the database file'}. One target path for each individual database file. Overrides targetDataFilePath and targetLogFilePath. | ||
finish_recovery | str | A Boolean value that determines the recovery option to use during database restore. When this value is 'true', the database is restored using the RECOVERY option and is fully functional at the end of the restore operation. When this value is 'false', the database is restored using the NORECOVERY option and remains in recovering mode at the end of the restore operation. | ||
max_data_streams | str | Maximum number of parallel data streams that can be used to copy data to the target system. | ||
allow_overwrite | str | A Boolean value that determines whether an existing database can be overwritten by a database this is exported from a backup. Set to false to prevent overwrites. This is the default. Set to true to allow overwrites. | ||
timeout | int | The number of seconds to wait to establish a connection with the Rubrik cluster before returning a timeout error. | 30 |
Returns
Type | Return Value |
dict | The full response of |
Example
Last updated