Restore¶
-
class
tamr_client.Restore(url, backup_path, state, error_message)[source]¶ A Tamr restore
See https://docs.tamr.com/new/docs/configuration-backup-and-restore
-
tamr_client.restore.get(session, instance)[source]¶ Get information on the latest Tamr restore, if any.
- Parameters
session (
Session) – Tamr sessioninstance (
Instance) – Tamr instance
- Return type
Restore- Returns
Latest Tamr restore
- Raises
restore.NotFound – If no backup found at the specified URL
-
tamr_client.restore.initiate(session, instance, backup_path)[source]¶ Initiate a Tamr restore.
- Parameters
session (
Session) – Tamr sessioninstance (
Instance) – Tamr instancebackup_path (
str) – Path to the backup
- Return type
Restore- Returns
Initiated restore
- Raises
restore.InvalidOperation – If attempting an invalid operation
-
tamr_client.restore.cancel(session, restore)[source]¶ Cancel a Tamr restore.
- Parameters
session (
Session) – Tamr sessionrestore (
Restore) – A Tamr restore
- Return type
Restore- Returns
Canceled restore
- Raises
restore.NotFound – If no backup file found at the specified path
restore.InvalidOperation – If attempting an invalid operation