Disabling and Re-enabling Scheduled Backups

You can disable and re-enable regularly scheduled backups of a database deployment.

You can disable and re-enable scheduled backups by generating a file containing the current settings, editing the file, and then using the file to update the backup settings. To generate a configuration file with the current backup settings and use it to update the settings:

  1. Connect as the opc user to a compute node that is associated with the database deployment.

    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 generate a file containing the current backup settings:

    # /var/opt/oracle/bkup_api/bkup_api get config [--file=filename] --dbname=dbname
    

    where filename is an optional parameter used to specify a name for the file that will be generated and dbname is the database name for the database that you want to act on.

  4. Edit the bkup_cron_entry parameter in the generated file to disable or re-enable scheduled backups.

  5. Enter this bkup_api command to update the backup settings using the file you generated:

    # /var/opt/oracle/bkup_api/bkup_api set config --file=filename --dbname=dbname
    

    where filename is used to specify the name of the file that contains the updated backup settings and dbname is the database name for the database that you want to act on.

  6. You can use this bkup_api command to check the status of the update:

    # /var/opt/oracle/bkup_api/bkup_api configure_status
    
  7. Exit the root-user command shell:

    # exit
    $