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:
-
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).
-
Start a root-user command shell:
$ sudo -s #
-
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 anddbname
is the database name for the database that you want to act on. -
Edit the
bkup_cron_entry
parameter in the generated file to disable or re-enable scheduled backups. -
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 anddbname
is the database name for the database that you want to act on. -
You can use this
bkup_api
command to check the status of the update:# /var/opt/oracle/bkup_api/bkup_api configure_status
-
Exit the root-user command shell:
# exit $