psm MySQLCS update-backup-config
Updates the backup configuration of the MySQL Cloud Service instance.
Syntax
In the following syntax, line breaks have been added for clarity. Do not include them when entering the command.
psm MySQLCS update-backup-config -s|--service-name instance-name
-c|--config-payload path-to-json-payload
[-wc|--wait-until-complete true|false]
[-of|--output-format json|html|short]
Parameters
Parameter | Description |
---|---|
|
Specifies the name of the instance. |
|
Specifies the path to the JSON payload file. |
|
(Optional) If set to Waiting for the job to complete... (it cannot be cancelled) The default value is |
|
(Optional) Specifies the output format of the command’s response:
The default output format is the one you specified when using the |
JSON Payload
The json payload has the following syntax:
{
"defaultRetention":"",
"fullBackupSchedule":{
"dayOfWeek":"",
"hour":"required",
"minute":""
},
"incrementalBackupSchedule":{
"dayOfWeek":"",
"hour":"required",
"minute":""
},
"backups":""
}
Parameter | Description |
---|---|
|
Defines the number of days the backup is retained before it is automatically deleted. |
|
Defines the schedule for the full backup. The following parameters must be set:
|
|
Defines the schedule for the incremental backup. The following parameters must be set:
|
|
Defines whether the backups are enabled. Possible values are |
Examples
The following example updates the backup configuration of the MySQL57–aas
instance to full backup every Sunday at 12:11, and the incremental backup to 11:11 every day, with a default retention of 32 days:
$ psm MySQLCS update-backup-config -s MySQL57–aas -c /tmp/update-backup-payload.json
where the payload for this command is:
{
"defaultRetention":"32",
"fullBackupSchedule":{
"dayOfWeek":"Sun",
"hour":"12",
"minute":"11"
},
"incrementalBackupSchedule":{
"dayOfWeek":"",
"hour":"11",
"minute":"11"
},
"backups":"ENABLE"
}