psm analytics backup

Use this command to initiate an on-demand backup for 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 backup -s|--service-name serviceName 
   [-k|--keep-forever]
   [-f|--full true|false]
   [-n|--notes free form note]
   [-of|--output-format json|html|short]

Parameters

All parameters are required unless otherwise noted.

Parameters Description
-s|–-service-name Name of the service.
-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.
-f|-–full (Optional) Specifies whether to start a full (true) backup. Full backups contain runtime and configuration artifacts.
-n|-–notes (Optional) Free-form text to provide additional information about the backup.
-of|-–output-format (Optional) Desired output format.

Accepted values: json, html, short

Example

$ psm analytics backup -s example1Service -n On-demand-backup-request  
{
    "job_id":"34270",
    "operationName":"start-backup",
    "target_uri":"http://myserver.us.mycorp.com:7103/paas/service/analytics/api/v1.1/instances/myteamabca/example1Service/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 analytics operation-status command:

$ psm analytics operation-status -j 34270

When you see the message:

    "operationId":364,
    "operationType":"BACKUP",
    "serviceId":364,
    "serviceName":"example1Service",
    "serviceType":"paas",
    "startDate":"2016-04-28T19:27:32.248+0000",
    "status":"SUCCEED",
    "summaryMessage":"BACKUP"

the service was successfully backed up.