psm dbcs view-backups

List all backups of anOracle Database Cloud Service instance.

Syntax

psm dbcs view-backups -s|--service-name instance-name [-of|--output-format json|html|short]

Parameters

Parameter Description

-s|--service-name instance-name

Specifies the name of the Database Cloud Service instance for which you want to see a list of backups.

-of|--output-format json|html|short

(Optional) Specifies the output format of the command’s response:

  • json—output is formatted as a JSON array.

  • html—output is formatted as HTML

  • short—output is formatted as a brief summary.

The default output format is the one you specified when using the psm setup command to configure the psm CLI.

Examples

The following example lists backups of the db12c-xp-si Database Cloud Service instance.

$ psm dbcs view-backups --service-name db12c-xp-si2
{
    "backupList":[
        {
            "backupCompleteDate":"23-Jul-2016 23:04:54 UTC",
            "dbTag":"TAG20160723T230454",
            "status":"COMPLETED"
        },
        {
            "backupCompleteDate":"20-Jul-2016 23:03:36 UTC",
            "dbTag":"TAG20160720T230336",
            "status":"COMPLETED"
        },
        {
            "backupCompleteDate":"19-Jul-2016 23:03:30 UTC",
            "dbTag":"TAG20160719T230330",
            "status":"COMPLETED"
        },
        {
            "backupCompleteDate":"18-Jul-2016 23:05:59 UTC",
            "dbTag":"TAG20160718T230559",
            "status":"COMPLETED"
        }
    ]
}