Managing a Backup
Use the Console or the command-line interface to edit, delete, or move a backup. You can also copy a backup to another region.
Editing a Backup
Use the Console or the command-line interface to edit the display name, description, retention period, and soft delete of a DB system backup.
You cannot change the retention period of automatic backups.
The retention period of final backups of Always Free DB systems is limited to a maximum of 7 days.
You cannot change the soft delete of backups of Always Free DB systems.
Use the Console or the command-line interface to edit a backup:
- Using the Console
- Using the CLI
- Using the REST API, run the UpdateBackup operation.
Using the Console
Use the Console to edit the display name, description, and retention period of your backup.
The Edit backup panel is different from the Edit backup plan panel. The Edit backup plan panel enables you to enable automatic backups, edit the retention period and window start time of an existing DB system. See Editing a Backup Plan.
Using the CLI
Use the command-line interface to update the display name, description, retention period, and soft delete of your backup.
- A backup OCID.
- A policy that permits you to update backups in the compartment or tenancy.
- A properly configured CLI installation and the requisite SSH keys. See Command Line Interface.
Editing a Backup Plan
Edit the backup plan of an existing DB system to enable automatic backups, point in time recovery, and soft delete, edit the retention period and window start time, and schedule cross-region backup copy.
You cannot change the backup plan of an Always Free DB system.
- Using the Console
- Using the REST API, run the UpdateDbSystem operation with the
backupPolicy
attribute.
Using the Console
Use the Console to edit the backup plan of an existing DB system.
The Edit backup plan panel is different from the Edit backup panel. The Edit backup panel enables you to edit the display name and description of the backup. See Editing a Backup.
Moving a Backup
You can move an active backup to a different compartment. You can not move a backup that is in any other state.
You cannot move backups of an Always Free DB system to another compartment.
Use the Console or the command-line interface to move a backup to a different compartment.
- Using the Console
- Using the CLI
- Using the REST API, run the ChangeBackupCompartment operation.
Using the Console
Use the Console to move your backup to a different compartment.
- The access permission,
MYSQL_BACKUP_MOVE
, on the compartment to which you want to move your backup. See mysql-backups. - An active backup. You can not move a backup that is in any other state.
Using the CLI
Use the command-line interface to move a backup to a different compartment.
- A backup OCID.
- A policy that permits you to move backups in the compartment or tenancy.
- A properly configured CLI installation and the requisite SSH keys. See Command Line Interface.
Deleting a Backup
Use the Console or the command-line interface to delete a backup of the DB system.
- Using the Console
- Using the CLI
- Using the REST API, run the DeleteBackup operation.
Using the Console
Use the Console to delete a backup of your DB system.
- On the Backups list page, find the backup that you want to work with. If you need help finding the list page or the backup, see Listing Backups - Using the Console.
- From the Actions menu for the backup, select Delete.
- On the Delete backup dialog box, select Delete backup.
Using the CLI
Use the command-line interface to delete a backup.
- A backup OCID.
- A policy that permits you to delete backups in the compartment or tenancy.
- A properly configured CLI installation and the requisite SSH keys. See Command Line Interface.
Canceling the Deletion of a Backup
Use the Console or the command-line interface to cancel the deletion of a backup.
Using the Console
Use the Console to cancel the scheduled deletion of a backup.
- On the Backups list page, find the backup that you want to work with. If you need help finding the list page or the backup, see Listing Backups - Using the Console.
- From the Actions menu for the DB system, select Cancel deletion.
- On the Cancel deletion dialog box, select Cancel deletion.
Using the CLI
Use the command-line interface to cancel the deletion of a backup.
- The OCID of a backup that has the
DELETE SCHEDULED
state. - A policy that permits you to cancel the delete of backups in the compartment or tenancy.
- A properly configured CLI installation and the requisite SSH keys. See Command Line Interface.
Copying a Backup to Another Region
Copy a backup of the DB system to another region.
You cannot copy backups of an Always Free DB system to another region.
After copying the backup of a DB system to another region, you can restore the DB system in the destination region. It does not copy the configuration of the DB system on which the backup was taken.
When copying DB system backups across regions in your tenancy, the MySQL Maximum Parallel Cross-Region Backup Copy Count service limit determines the maximum number of concurrent copies that you can perform from a specific source region.
- An active backup in any region:
Note
You can copy the backup to another region within the same realm in Oracle Cloud Infrastructure. The backup is not currently being copied to the same destination region. You cannot create a copy of the backup in the same region. - The access permission,
MYSQL_BACKUP_COPY
andMYSQL_BACKUP_READ
, in the source region where the backup is located in. See mysql-backups.Note
The aggregate resource typemysql-family
does not include theMYSQL_BACKUP_COPY
permission. - The access permission,
MYSQL_BACKUP_CREATE
, in the destination region where the backup is to be copied to. See mysql-backups.
- To allow a group named
MyTestGroup1
to copy DB system backups between any regions:Allow group MyTestGroup1 to read mysql-backups in tenancy Allow group MyTestGroup1 to use mysql-backups in tenancy where request.permission = 'MYSQL_BACKUP_COPY' Allow group MyTestGroup1 to manage mysql-backups in tenancy where request.permission = 'MYSQL_BACKUP_CREATE'
- To allow a group named
MyTestGroup2
to copy DB system backups from the US West (Phoenix) and US East (Ashburn) regions to any destination regions:Allow group MyTestGroup2 to read mysql-backups in tenancy Allow group MyTestGroup2 to use mysql-backups in tenancy where all {request.permission = 'MYSQL_BACKUP_COPY', any {request.region='phx', request.region='iad'}) Allow group MyTestGroup2 to manage mysql-backups in tenancy where request.permission = 'MYSQL_BACKUP_CREATE'
- To allow a group named
MyTestGroup3
to copy DB system backups from the UK South (London) region to the Germany Central (Frankfurt) region:Allow group MyTestGroup3 to read mysql-backups in tenancy where request.region = 'lhr' Allow group MyTestGroup3 to use mysql-backups in tenancy where all {request.permission = 'MYSQL_BACKUP_COPY', request.region = 'lhr', target.destination-region = 'fra'} Allow group MyTestGroup3 to manage mysql-backups in tenancy where all {request.permission = 'MYSQL_BACKUP_CREATE', request.region = 'fra'}
Use the Console or the command-line interface to copy a backup of the DB system to another region .
- Using the Console
- Using the CLI
- Using the REST API, run the CopyBackup operation.
Using the Console
Use the Console to copy your backup to another region.
If the COPY_BACKUP work request returns the
DbSystemBackupCopyLimitExceeded
error, you need to retry the copy backup again at a later time.
Using the CLI
Use the command-line interface to copy a backup of the DB system to another region.
- A source backup OCID.
- A policy that permits you to read and copy backups in the source region and create backups in the destination region.
- A properly configured CLI installation and the requisite SSH keys. See Command Line Interface.
Note
The CLI must be configured to authenticate with the destination region to which the backup is copied.