raccli update backupconfig

Not Oracle Cloud InfrastructureNot Oracle Cloud at Customer This topic does not apply to Oracle Cloud Infrastructure or to Oracle Cloud at Customer.

The update backupconfig subcommand of the raccli utility updates the backup configuration on an Oracle Database Classic Cloud Service database deployment that uses Oracle Real Application Clusters (RAC).

Note:

If you have used the update rdk subcommand of the raccli utility to update the cloud tooling to 16.4.5 or later, you must manually update the opc installer for the Oracle Database Cloud Backup Module before you use the update backupconfig subcommand. For instructions, see in Updating the cloud tooling on a deployment hosting Oracle RAC requires manual update of the Oracle Database Cloud Backup Module in Known Issues for Oracle Database Classic Cloud Service.

raccli update backupconfig  -params parameter-string 

This subcommand runs synchronously.

Options of this subcommand are as follows.

Option Description

-params parameter-string

The parameters to update.

Parameters

The parameter string is a single JSON object that specifies the backup configuration settings to be updated.

The following table describes the parameters that can be specified in this JSON string.

Parameter Description

backupDerby

Controls whether a backup of the metadata store for each RAC compute node is taken. Enter true (default) or false.

backupGiConfigFiles

Controls whether a backup of the Grid Infrastructure configuration files is taken. Enter true (default) or false .

backupOsConfigFiles

Controls whether a backup of operating system configuration files is taken. Enter true (default) or false .

dbHomeBackup

Controls whether a backup of the Oracle Database home is taken. Enter true or false (default).

cloudStorageContainerUrl

The URL of the Oracle Storage Cloud Service container.

cloudStoragePwd

The password of the user specified in cloudStorageUser. You must also provide the user name in cloudStorageUser.

cloudStorageUser

The user name of an Oracle Cloud user who has read/write access to the container. You must also provide the password of the user in cloudStoragePwd.

cronDate

Specifies the time (using 24-hour, HH:MM format) when daily backups are to occur. For example, 02:45 is 2:45 AM, and 14:45 is 2:45 PM. The default value is 01:00.

diskEnabled

Controls whether backups to local storage on the compute node are configured. Enter true or false. You must enter the same value in ossEnabled.

diskRecoveryWindow

The number of days for which backups and archived redo logs on local storage are maintained. The interval always ends with the current time and extends back in time for the number of days specified. The default value is 7.

giHomeBackup

Controls whether a backup of the Grid Infrastructure home is taken. Enter true or false (default).

ossEnabled

Controls whether backups to an Oracle Storage Cloud Service container using Oracle Database Backup Cloud Service are to be configured. Enter true or false. You must enter the same value in diskEnabled.

ossRecoveryWindow

The number of days for which backups on cloud storage are maintained. The interval always ends with the current time and extends back in time for the number of days specified. The default value is 30.

Example

Here is an example of the update backupconfig subcommand. You can use the raccli list backupconfig subcommand to view your changes.

[opc@example1 ~]$ raccli update backupconfig -params '{"cronDate" : "02:45"}'

{
  "requestStatus" : "SUCCESS",
  "jobStatus" : "SUCCESS",
  "message" : null,
  "response" : [ ]
}
  [opc@example1 ~]$