psm jcs backup
This command initiates an on-demand backup for an Oracle Java Cloud Service instance.
Syntax
In the following syntax, line breaks have been added for clarity. Do not include them when entering the command.
psm jcs backup -s|--service-name serviceName
[-d|--datbase-included true|false]
[-k|--keep-forever]
[-f|--full true|false]
[-o|--notes free form note]
[-of|--output-format json|html|short]
[-wc|--wait-until-complete true|false]
Parameters
All parameters are required unless otherwise noted.
Parameters | Description |
---|---|
-s|–-service-name serviceName |
Name of the Oracle Java Cloud Service instance. |
[-d|--database-included true|false] |
(Optional) Indicates whether or not the database be included in backup.
Note: this feature not available for Exadata databases.Accepted values: |
-k|-–keep-forever |
(Optional) For full backups, omit this parameter to specify no expiration date. By default, backups are retained for the default retention period defined in the backup configuration. |
-a|-–backup-type |
(Optional) Indicate the type of backup to be made.
Accepted values: Note: This parameter replaces the parameterfull used in previous versions of the CLI. full was deprecated.
|
-o|-–notes free form note |
(Optional) Free-form text to provide additional information about the backup. |
-of|-–output—format json|html|short |
(Optional) Output format of the command’s response:
Accepted values: The default output format is the one you specified when using the |
|
(Optional) A boolean value that, when set to
true , makes the command behave synchronously; that is, it does not return until the submitted job is complete. The following message is displayed until the job is complete: Default: false |
Example
$ psm jcs backup -s Example1Instance -n On-demand-backup-request -of json
{
"job_id":"34270",
"operationName":"start-backup",
"target_uri":"http://myserver.us.mycorp.com:7103/paas/service/jcs/api/v1.1/instances/myteamabca/Example1Instance/backups/1461871652240"
}
Job ID : 34270
Note that this command returned a job ID. To see the status of your create-service
operation, use this ID with the psm jcs operation-status command:
$ psm jcs operation-status -j 34270
When you see the message:
"operationId":364,
"operationType":"BACKUP",
"serviceId":364,
"serviceName":"Example1Instance",
"serviceType":"jaas",
"startDate":"2016-04-28T19:27:32.248+0000",
"status":"SUCCEED",
"summaryMessage":"BACKUP"
the service instance was successfully backup.