Creating an On-Demand Backup

You can create an on-demand backup of an Oracle Database Cloud Service database deployment by using the Oracle Database Cloud Service console or, if desired, by using one of the ways listed in Other Ways to Create an On-Demand Backup at the end of this topic.

Creating an On-Demand Backup by Using the Oracle Database Cloud Service Console

  1. Open the Instances page of the Oracle Database Cloud Service console.

    For detailed instructions, see Accessing the Oracle Database Cloud Service Console.

  2. Click the database deployment for which you want to create a backup.

    The Oracle Database Cloud Service Overview page is displayed.

  3. Click the Administration tile.

    The Oracle Database Cloud Service Backup page is displayed.

  4. Click Backup Now.

    The Backup Now dialog is displayed.

  5. Make a selection for the Keep Forever option and then click Backup.

    The Keep Forever option controls the backup retention policy, as follows:

    • No — specifies that the backup is produced and maintained in accordance with the automatic backup retention policy that is associated with the database deployment.

    • Yes — specifies that the backup is a long-term backup, which is produced and maintained independently of the automatic backup retention policy that is associated with the database deployment. Long-term backups remain until you explicitly remove them from the system.

Other Ways to Create an On-Demand Backup

Creating an On-Demand Backup by Using the bkup_api Utility

You can use the bkup_api utility to create an on-demand backup of a database deployment hosting a single-instance database or an Oracle Data Guard configuration of two single-instance databases.

  1. Connect as the opc user to the compute node. In a Data Guard configuration, connect to the compute node hosting the primary database.

    For detailed instructions, see Connecting to a Compute Node Through Secure Shell (SSH).

  2. Start a root-user command shell:

    $ sudo -s
    #
  3. Enter the bkup_api command:

    • To create a backup that follows the current retention policy, enter the following bkup_api command:

      # /var/opt/oracle/bkup_api/bkup_api bkup_start
      
    • To create a long-term backup of the complete database that persists until you delete it, enter the following bkup_api command:

      # /var/opt/oracle/bkup_api/bkup_api bkup_start --keep

      Note:

      By default, the backup is given a timestamp-based tag. To specify a custom backup tag, add the --tag option to the bkup_api command. For example, to create a long-term backup with the tag monthly, enter the following command:

      # /var/opt/oracle/bkup_api/bkup_api bkup_start --keep --tag=monthly
      
  4. Exit the root-user command shell and disconnect from the compute node:

    # exit
    $ exit

Note:

After you enter a bkup_api bkup_start command, the bkup_api utility starts the backup process, which runs in the background. To check the progress of the backup process, enter the following bkup_api command:

# /var/opt/oracle/bkup_api/bkup_api bkup_status

Creating an On-Demand Backup by Using the raccli Utility

Not Oracle Cloud InfrastructureNot Oracle Cloud at Customer This topic does not apply to Oracle Cloud Infrastructure or to Oracle Cloud at Customer.

You can use the raccli utility to create an on-demand backup of a database deployment hosting an Oracle Real Application Clusters (RAC) database:

  1. Connect to the compute node as the opc user.

    For detailed instructions, see Connecting to a Compute Node Through Secure Shell (SSH).

  2. Enter the raccli create backup subcommand:

    $ raccli create backup
    $

By default, the backup is given a timestamp-based tag. To specify a custom backup tag, add the -tag option to the raccli command; for example, to create a long-term backup with the tag "monthly", enter the following command:

$ raccli create backup -tag monthly

After you enter a raccli create backup command, the raccli utility starts the backup process, which runs in the background. To check the progress of the backup process, enter the following raccli command:

$ raccli describe job