Creating a Manual Backup

Use the Console or the command-line interface to create a manual backup of the DB system.

Using the Console

Use the Console to create a manual backup of your DB system.

  1. Open the navigation menu and select Databases. Under MySQL, click DB Systems.
  2. Choose your compartment from the List Scope.
  3. Do one of the following:
    • Choose Create Manual Backup from the Actions menu on the same line as your DB system.
    • Click the name of the DB system to open the DB System Details page. Under Resources, select Backups, and click Create Manual Backup.
  4. In the Create Manual Backup panel, provide the following information:
    • Display Name: Specify the name of the backup. If you do not define a name, MySQL Database Service generates one for you in the format, NameOfDBSystem-Backup-Date, Time.
    • Description: Specify a description of the backup. If you do not define a description, MySQL Database Service generates one for you in the format, NameOfDBSystem-Backup-Date, Time.
    • Backup Type: Specify the backup type, full or incremental.
    • Retention Period: Specify the number of days the backup is retained. You can either select the number of days of retention or the end date of the retention.
  5. Click Create Manual Backup to create the backup.
    Note

    The DB system state changes to Updating while creating the manual backup, and returns to the original state once the backup is created. There is no other impact on the DB system.

Using the CLI

Use the command-line interface to create a manual backup.

This task requires the following:
  • A DB system OCID.
  • A policy that permits you to create backups in the compartment or tenancy.
  • A properly configured CLI installation and the requisite SSH keys. See Command Line Interface.
Do the following on the CLI to create a backup:
  1. Open a command prompt, and run the following command:
    oci mysql backup create 
    --db-system-id <DBSystemOCID> 
    --backup-type FULL 
    --display-name <BackUpName>
    --retention-in-days <NumberOfDays>
    • db-system-id: Specify the OCID of the DB system.

    • backup-type: (Optional) Specify the type of backup, FULL or INCREMENTAL. The default value is INCREMENTAL.

    • displayName: (Optional) Specify the display name of the DB system. If you do not define a display name, one is generated for you in the mysqlbackupYYYYMMDDHHMMSS format.

    • retention-in-days: (Optional) Specify the number of days the backup is retained. The default retention period is 365 days.