psm analytics update-backup-config

Use this command to update the backup configuration of a service created with Oracle Analytics Cloud - Classic.

Syntax

In the following syntax, line breaks have been added for clarity. Do not include them when entering the command.

psm analytics update-backup-config -s|--service-name ServiceName 
    -c|--config-payload pathToJSONFile
        [-of|--output-format json|html|short]

Parameters

All parameters are required unless otherwise noted.

Parameter Description
-s|--service-name instance-name Specifies the name of the service.
-c|--config-payload pathToJSONFile Path to the JSON file that contains the configuration parameters for accessing the Oracle Analytics Cloud service.

JSON Payload

The json payload has the following syntax:

{
    "defaultRetention":"",
    "fullBackupSchedule":{
        "dayOfWeek":"",
        "hour":"required",
        "minute":""
    },
    "incrementalBackupSchedule":{
        "dayOfWeek":"",
        "hour":"required",
        "minute":""
    },
    "backups":""
}
Parameter Description

"defaultRetention"

Defines the number of days the backup is retained before it is automatically deleted.

"fullBackupSchedule"

Defines the schedule for the full backup. The following parameters must be set:

  • dayOfWeek—the 3–letter code for the day on which the full backup is performed. Wed for Wednesday, for example.

  • hour—the hour of the day at which the full backup is performed. For example, 14 for 2pm

  • Minute—the minute at which the full backup is performed. For example, 30 for 30 minutes past the hour.

"incrementalBackupSchedule"

Defines the schedule for the incremental backup. The following parameters must be set:

  • dayOfWeek—the 3–letter code for the day on which the incremental backup is performed. Wed for Wednesday, for example.

  • hour—the hour of the day at which the incremental backup is performed. For example, 14 for 2pm

  • Minute—the minute at which the incremental backup is performed. For example, 30 for 30 minutes past the hour.

"backups"

Defines whether the backups are enabled. Possible values are ENABLE or DISABLE.

Examples

The following example updates the backup configuration of the analytics–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 analytics update-backup-config -s analytics–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"
}