psm dhcs update-backup-config
Updates the backup configuration of the Oracle Data Hub Cloud Service cluster.
Syntax
In the following syntax, line breaks have been added for clarity. Do not include them when entering the command.
psm dhcs update-backup-config -s|--service-name cluster-name
-c|--config-payload path-to-json-payload
[-of|--output-format short|json|html]
[-wc|--wait-until-complete true|false]
Parameters
Parameter | Description |
---|---|
|
Specifies the name of the Oracle Data Hub Cloud Service cluster. |
|
Specifies the path to a JSON file containing the information necessary to update the backup configuration. The format of this file is the same as the request body you provide when updating the backup configuration by using the REST API. For information about this format, see the “Body Parameter” section of Update the Backup Configuration in REST API for Oracle Data Hub Cloud Service. |
|
(Optional) Specifies the output format of the command’s response:
The default output format is the one you specified when using the |
|
(Optional) If set to
The default value is |
Examples
The following example updates the backup configuration of the cluster1
cluster to full backup every Sunday at 12:11, and the incremental backup to 11:11 every day except Sunday, with a default retention of 32 days:
$ psm dhcs update-backup-config -s cluster1 -c update-backup-payload.json
{
"operationName":"backup-config-update",
"target_uri":"http://example.com:7777/paas/api/v1.1/instancemgmt/beta/services/DHCS/instances/cluster1/backupconfig",
"job_id":"7123723"
}
Job ID : 7123723
Note:
You can track the progress of this command by using the psm dhcs operation-status command.where the payload for this command is:
{
"defaultRetention":"32",
"fullBackupSchedule":{
"dayOfWeek":"Sun",
"hour":"12",
"minute":"11"
},
"incrementalBackupSchedule":{
"hour":"11",
"minute":"11"
},
"backups":"ENABLE"
}