psm dbcs create-snapshot

Creates a snapshot of the storage volumes of an Oracle Database Classic Cloud Service instance hosting a single-instance database.

Syntax

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

psm dbcs create-snapshot
  -s|--service-name instance-name
  -n|--snapshot-name snapshot-name
  [-d|--description description]
  [-of|--output-format json|html|short]

Parameters

Parameter Description

-s|--service-name instance-name

Specifies the name of the Database Classic Cloud Service instance you want to make a storage snapshot of.

-n|--snapshot-name snapshot-name

Specifies the name of the storage snapshot to create.

-d|--description description

(Optional) Specifies a description for the storage snapshot.

-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 creates the snapshot4patchtest storage snapshot of the db121-ep-si Database Classic Cloud Service instance.

$ psm dbcs create-snapshot --service-name db121-ep-si \
--snapshot-name snapshot4patchtest \
--description "Snapshot to test application of PSU patch"