Customizing the Automatic Backup Configuration
You can customize many of the characteristics of the automatic backup configuration.
Topics
Customizing Backup Settings by Using a Generated Configuration File
You can customize backup settings for a database deployment by generating a file containing the current customizable 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
opcuser to a compute node.For detailed instructions, see Connecting to a Compute Node Through Secure Shell (SSH).
-
Start a root-user command shell:
$ sudo -s # -
Use the
bkup_api get configcommand to generate a file containing the current backup settings for the database deployment:# /var/opt/oracle/bkup_api/bkup_api get config [--file=filename] --dbname=dbnamewhere
filenameis an optional parameter used to specify a name for the file that is generated anddbnameis the database name for the database that you want to act on. -
Edit the parameter values in the generated file to change any settings you want to customize in the backup configuration.
The following parameters can be modified to customize the backup configuration:
Parameter Description bkup_cron_entryEnables the automatic backup configuration. Valid values are
yesandno.bkup_cfg_filesEnables backup of system and database configuration files. Valid values are
yesandno.bkup_daily_timeStart time of the automatic daily backup expressed in 24-hour time as
hh:mm.bkup_archlog_cron_entryEnables automatic backups of archived database log files. Valid values are
yesandno. Default value isyes.Setting
bkup_archlog_cron_entrytonodisables automatic archive log clean-up jobs. This setting is valid only when the associated database has no automatic database backups configured.bkup_archlog_frequencyInterval in minutes between automatic backups of archived database log files. Valid values are
15,20,30,60, and120. Default value is60.bkup_diskEnables backups to local Exadata storage. Valid values are
yesandno.bkup_disk_recovery_windowRetention period for backups on local Exadata storage, expressed as a number of days up to
14. Only applicable whenbkup_diskis set toyes. Default value is7.bkup_ossEnables backups to cloud storage. Valid values are
yesandno.bkup_oss_recovery_windowRetention period for backups to cloud storage, expressed as a number of days up to
90. Only applicable whenbkup_ossis set toyes. Default value is30.bkup_oss_urlLocation of the storage container that is used for backup to cloud storage. Only applicable when
bkup_ossis set toyes.bkup_oss_userUser name of the Oracle Cloud user having write privileges on the cloud storage container specified in
bkup_oss_url. Only applicable whenbkup_ossis set toyes.bkup_oss_passwdPassword of the Oracle Cloud user having write privileges on the cloud storage container specified in
bkup_oss_url. Only applicable whenbkup_ossis set toyes.bkup_oss_l0_dayDay of the week when a level 0 backup is taken and stored on cloud storage. Valid values are
mon,tue,wed,thu,fri,sat,sun. Only applicable whenbkup_ossis set toyes. Default value issun.bkup_zdlraEnables backups to a Recovery Appliance. Valid values are
yesandno.bkup_zdlra_urlLocation of the Recovery Appliance that is being used for backups. Only applicable when
bkup_zdlrais set toyes.bkup_zdlra_userThe virtual private catalog (VPC) user name for the Recovery Appliance specified in
bkup_zdlra_url. Only applicable whenbkup_zdlrais set toyes.bkup_zdlra_passwdPassword of the Recovery Appliance user specified in
bkup_zdlra_url. Only applicable whenbkup_zdlrais set toyes.bkup_rman_compressionLevel of compression applied to automatic backups. Valid values are
basic,low,medium, andhigh. Default value islow.bkup_set_section_sizeEnables the use of the RMAN multisection backup feature. Valid values are
yesandno.bkup_section_sizeRMAN section size that is used for automatic backups. Default value is 64G. Only applicable whenbkup_set_section_sizeis set toyes.bkup_channels_nodeNumber of RMAN channels that are used for automatic backups. Valid values are between 1and32. Default value is4.bkup_use_rcatEnables the use of an existing RMAN recovery catalog. Valid values are
yesandno.bkup_rcat_userRecovery catalog user name. Only applicable when
bkup_use_rcatis set toyes.bkup_rcat_passwdPassword for recovery catalog user specified in
bkup_rcat_user. Only applicable whenbkup_use_rcatis set toyes.bkup_rcat_connConnection string for the RMAN recovery catalog. Only applicable when
bkup_use_rcatis set toyes. -
Use the
bkup_api set configcommand to update the backup settings using the file containing your updated backup settings:# /var/opt/oracle/bkup_api/bkup_api set config --file=filename --dbname=dbnamewhere
filenameis used to specify the name of the file that contains the updated backup settings anddbnameis the database name for the database that you are acting on. -
You can use the
bkup_api configure_statuscommand to check the status of the configuration update:# /var/opt/oracle/bkup_api/bkup_api configure_status -
Exit the root-user command shell:
# exit $
Note that any changes you make by using the bkup_api
command are not reflected in the Oracle Database Exadata Cloud at Customer
console.
Customizing Which System Files Are Backed Up
If your backup configuration includes
bkup_cfg_files=yes, then each backup includes system configuration
files and directories specified in the oscfg.spec file.
To change which system files and directories are backed up:
-
Connect as the
oracleuser to a compute node.For detailed instructions, see Connecting to a Compute Node Through Secure Shell (SSH).
-
Edit the contents of the
oscfg.specfile. This file is located under/var/opt/oracle/dbaas_acfs/bkup/dbname, wheredbnameis the name of the database that is associated with the backup configuration.Following is an example of the default contents of the
oscfg.specfile:## OS Configuration Files # # Doc Spec oscfg.spec # # Directories /etc/rc.d /home/oracle/bkup # # Single files /home/oracle/.bashrc /etc/crontab /etc/sysctl.conf /etc/passwd /etc/group /etc/oraInst.loc /etc/oratab /etc/fstab
Customizing Which Database Configuration Files Are Backed Up
If your backup configuration includes
bkup_cfg_files=yes, then each backup includes database
configuration files and directories specified in the dbcfg.spec
file.
To change which database configuration files are backed up:
-
Connect as the
oracleuser to a compute node.For detailed instructions, see Connecting to a Compute Node Through Secure Shell (SSH).
-
Edit the contents of the
dbcfg.specfile. This file is located under/var/opt/oracle/dbaas_acfs/bkup/dbname, wheredbnameis the name of the database that is associated with the backup configuration.Following is an example of the contents of the
dbcfg.specfile:### Oracle_Home configuration files. # # Doc Spec dbcfg.spec # DB id dbid # # Directories /u02/app/oracle/product/dbversion/dbhome_n/admin/dbname/xdb_wallet /u02/app/oracle/admin/dbname/xdb_wallet /u02/app/oracle/admin/dbname/db_wallet # Note: tde_wallet must be backed up in a different location than DATA bkup. /u02/app/oracle/admin/dbname/tde_wallet /u02/app/oracle/admin/dbname/cat_wallet #/u01/app/oraInventory # # Single files /var/opt/oracle/dbaas_acfs/dbname/opc/opcdbname.ora /u02/app/oracle/product/dbversion/dbhome_n/dbs/opcdbname.ora /u02/app/oracle/product/dbversion/dbhome_n/dbs/orapwinstancename /u02/app/oracle/product/dbversion/dbhome_n/network/admin/listener.ora /u02/app/oracle/product/dbversion/dbhome_n/network/admin/sqlnet.ora /u02/app/oracle/product/dbversion/dbhome_n/network/admin/tnsnames.ora /u02/app/oracle/product/dbversion/dbhome_n/rdbms/lib/env_rdbms.mk /u02/app/oracle/product/dbversion/dbhome_n/rdbms/lib/ins_rdbms.mk # # Creg /var/opt/oracle/creg/instancename.ini #