psm MySQLCS restore
Restores a backup to a MySQL Cloud Service instance.
Syntax
In the following syntax, line breaks have been added for clarity. Do not include them when entering the command.
psm MySQLCS restore -s|--service-name instance-name
-b|--backup-id backup-id
[-e|--restore-type restore-type -t|--restore-id ”dd/mm/yyyy hh:mm:ss"]
[-n|--notes string]
[-wc|--wait-until-complete true|false]
[-of|--output-format json|html|short]
Parameters
Parameter | Description |
---|---|
|
Specifies the name of the MySQL Cloud Service instance. |
|
Specifies the unique identifier of the backup to restore. |
|
(Optional)The type of restore to perform. Possible values are:
|
|
(Optional)The unique identifier of the restore. These are used only for Point-In-Time restores. The value takes the following format: |
|
(Optional) Enables the addition of explanatory notes. Notes must be enclosed in quotation marks. |
|
(Optional) If set to Waiting for the job to complete... (it cannot be cancelled) The default value is |
|
(Optional) Specifies the output format of the command’s response:
The default output format is the one you specified when using the |
Note:
If MySQL Transparent Data Encryption (TDE) is enabled on the MySQL instance, it is not currently possible to restore a backup of that instance.Examples
The following example restores the backup with id 00db56ff-445f-4e35–fr45–5aeeed113701b
to the MySQL57–aas
instance.
$ psm MySQLCS restore --service-name MySQL57-aas --backup-id 00db56ff-445f-4e35–fr45–5aeeed113701b
The following is an example of a Point-In-Time restore, restoring a backup dated 06/12/2016 17:20:55 to the MySQL57–aas
instance:
psm MySQLCS restore -s MySQL57-aas --restore-type PIT --restore-id "06/12/2016 17:20:55"