cloudera.cloud.datalake_backup module – Create a backup of a datalake
Note
This module is part of the cloudera.cloud collection (version 3.0.0).
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install cloudera.cloud
.
To use it in a playbook, specify: cloudera.cloud.datalake_backup
.
New in cloudera.cloud 3.0.0
Synopsis
Create a backup of a datalake
Optionally wait for the backup to complete
Parameters
Parameter |
Comments |
---|---|
The Id of the backup to restore Only applicable when state=restore |
|
The location of the backup to use during the restore When not specified the location used will be the backup storage of the environment If provided the backup_id parameter is required Only applicable when state=restore |
|
The name of the backup If state=backup this is the name of the backup to create If state=restore this is the name of the backup to restore |
|
The name of the datalake to backup |
|
Skips the restore of the Atlas indexes Only applicable when state=restore Choices:
|
|
Skips the restore of the Atlas metadata Only applicable when state=restore Choices:
|
|
Skips the restore of the Ranger audits Only applicable when state=restore Choices:
|
|
Skips the restore of the databases backing HMS/Ranger services Only applicable when state=restore Choices:
|
|
Skips the validation steps that run prior to the restore Only applicable when state=restore Choices:
|
|
The declarative state of the datalake backup. Choices:
|
|
Whether to wait for the backup to complete Choices:
|
Examples
# Note: These examples do not set authentication details.
- name: Create a datalake backup
cloudera.cloud.datalake_backup:
datalake_name: "datalake"
backup_name: "my_backup"
state: "backup"
register: backup_result
- name: Create a datalake backup and wait for it to complete
cloudera.cloud.datalake_backup:
datalake_name: "datalake"
state: "backup"
wait: true
register: backup_result
- name: Restore a named datalake backup wait for it to complete
cloudera.cloud.datalake_backup:
datalake_name: "datalake"
backup_name: "my_backup"
state: "restore"
wait: true
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
The details of the backup or restore operation Returned: always |
|
The account id Returned: success |
|
The backup id Returned: success |
|
The backup location Returned: success |
|
The name of the backup Returned: success |
|
The end time Returned: success |
|
The internal state of each backup or restore stage Returned: success |
|
Object representing the state of each service running a backup or restore Returned: success |
|
The state of Cloudera Manager admin operations Returned: success |
|
Details of the dry run validation admin operation Returned: success |
|
The duration of the operation, in minutes Returned: success |
|
The failure reason if the operation was not successful Returned: success |
|
Predicted duration of the operation, in minutes Returned: success |
|
The status of the backup or restore operation Returned: success |
|
Details of the pre check storage permission admin operation Returned: success |
|
The duration of the operation, in minutes Returned: success |
|
The failure reason if the operation was not successful Returned: success |
|
Predicted duration of the operation, in minutes Returned: success |
|
The status of the backup or restore operation Returned: success |
|
Details of the Ranger Audit Collection Validation admin operation Returned: success |
|
The duration of the operation, in minutes Returned: success |
|
The failure reason if the operation was not successful Returned: success |
|
Predicted duration of the operation, in minutes Returned: success |
|
The status of the backup or restore operation Returned: success |
|
Details of the start services admin operation Returned: success |
|
The duration of the operation, in minutes Returned: success |
|
The failure reason if the operation was not successful Returned: success |
|
Predicted duration of the operation, in minutes Returned: success |
|
The status of the backup or restore operation Returned: success |
|
Details of the stop services admin operation Returned: success |
|
The duration of the operation, in minutes Returned: success |
|
The failure reason if the operation was not successful Returned: success |
|
Predicted duration of the operation, in minutes Returned: success |
|
The status of the backup or restore operation Returned: success |
|
The state of each database backup/restore operation Returned: success |
|
Details of the database operation Returned: success |
|
The duration of the operation, in minutes Returned: success |
|
The failure reason if the operation was not successful Returned: success |
|
Predicted duration of the operation, in minutes Returned: success |
|
The status of the backup or restore operation Returned: success |
|
The state of each HBase backup/restore operation Returned: success |
|
Details of the Atlas entity audit event table HBase operation Returned: success |
|
The duration of the operation, in minutes Returned: success |
|
The failure reason if the operation was not successful Returned: success |
|
Predicted duration of the operation, in minutes Returned: success |
|
The status of the backup or restore operation Returned: success |
|
Details of the Atlas Janus HBase operation Returned: success |
|
The duration of the operation, in minutes Returned: success |
|
The failure reason if the operation was not successful Returned: success |
|
Predicted duration of the operation, in minutes Returned: success |
|
The status of the backup or restore operation Returned: success |
|
The state of each Solr backup/restore operation Returned: success |
|
Details of the edge index collection Solr operation Returned: success |
|
The duration of the operation, in minutes Returned: success |
|
The failure reason if the operation was not successful Returned: success |
|
Predicted duration of the operation, in minutes Returned: success |
|
The status of the backup or restore operation Returned: success |
|
Details of the edge index collection delete Solr operation Returned: success |
|
The duration of the operation, in minutes Returned: success |
|
The failure reason if the operation was not successful Returned: success |
|
Predicted duration of the operation, in minutes Returned: success |
|
The status of the backup or restore operation Returned: success |
|
Details of the full text index collection Solr operation Returned: success |
|
The duration of the operation, in minutes Returned: success |
|
The failure reason if the operation was not successful Returned: success |
|
Predicted duration of the operation, in minutes Returned: success |
|
The status of the backup or restore operation Returned: success |
|
Details of the full text index collection delete Solr operation Returned: success |
|
The duration of the operation, in minutes Returned: success |
|
The failure reason if the operation was not successful Returned: success |
|
Predicted duration of the operation, in minutes Returned: success |
|
The status of the backup or restore operation Returned: success |
|
Details of the ranger audits collection Solr operation Returned: success |
|
The duration of the operation, in minutes Returned: success |
|
The failure reason if the operation was not successful Returned: success |
|
Predicted duration of the operation, in minutes Returned: success |
|
The status of the backup or restore operation Returned: success |
|
Details of the ranger audits collection delete Solr operation Returned: success |
|
The duration of the operation, in minutes Returned: success |
|
The failure reason if the operation was not successful Returned: success |
|
Predicted duration of the operation, in minutes Returned: success |
|
The status of the backup or restore operation Returned: success |
|
Details of the vertex index collection Solr operation Returned: success |
|
The duration of the operation, in minutes Returned: success |
|
The failure reason if the operation was not successful Returned: success |
|
Predicted duration of the operation, in minutes Returned: success |
|
The status of the backup or restore operation Returned: success |
|
Details of the vertex index collection delete Solr operation Returned: success |
|
The duration of the operation, in minutes Returned: success |
|
The failure reason if the operation was not successful Returned: success |
|
Predicted duration of the operation, in minutes Returned: success |
|
The status of the backup or restore operation Returned: success |
|
The restore id Only returned when state=restore Returned: success |
|
Datalake runtime version Returned: success |
|
The start time Returned: success |
|
The overall status of the backup or restore operation Returned: success |
|
The crn of the user that initiated the backup operation Returned: success |