Configure Backups Using a Configuration File
You can use a configuration file to customize database backup settings with dbaascli. Generate a file containing the current settings, edit the parameter values, and apply the updated configuration.
Before you begin, review the following:
-
In
dbaasclirelease 25.1.2.0.0, backup configuration parameters were renamed. The old parameter names remain available for backward compatibility. -
If automatic backups are enabled through the Console, modify only parameters marked
Compatible with Console Automatic Backups = Yes. If you modify any other parameters, do not enable automatic backups through the Console. Conflicting settings or overwritten settings can cause backups to fail. For parameter descriptions and compatibility information, see Backup Configuration Parameter Reference. -
A backup configuration file can contain credentials for accessing the storage bucket. Consider deleting the file after successfully applying the backup configuration.
Using dbaascli Utility
Perform the following steps to customize database backup settings:
-
Connect to the VM as the
opcuser.For detailed instructions, see Connect to a VM with SSH.
-
Start a
rootuser command shell. -
Use the following command to generate a configuration file containing the current backup settings:
dbaascli database backup --getConfig --dbname <database_name>Replace
database_namewith the name of the database whose backup settings you want to configure.The command output provides the path to the generated configuration file.
-
Open the generated configuration file in a text editor and modify the required parameter values.
For example:
vi <file_name>Replace
file_namewith the full path to the generated configuration file. -
Apply the updated configuration:
dbaascli database backup --configure --configFile <file_name> --dbname <database_name>The command runs asynchronously and returns a universally unique identifier (UUID). Use this UUID to check the status of the configuration update.
-
Check the status of the configuration update:
dbaascli database backup --status --uuid <uuid> --dbname <database_name>Replace
uuidwith the UUID returned by the configuration command.Confirm that the configuration update completed successfully.
-
Exit the
rootuser command shell:exit
Examples:
-
To generate a configuration file:
dbaascli database backup --getconfig --dbname v23db8 DBAAS CLI version MAIN Executing command database backup --getconfig --dbname v23db8 Session log: /var/opt/oracle/log/v23db8/database/backup/dbaastools_2025-01-28_12-36-04-PM_236081.log logfile:/var/opt/oracle/log/dtrs/dcs-dtrs.0.*.log File /var/opt/oracle/log/dtrs/staging/tmpl/backup-6b4fff1e-723edsf4ba953-2025128-03611.cfg created dbaascli execution completed -
To customize backup settings using the configuration file:
vi /var/opt/oracle/log/dtrs/staging/tmpl/backup-6b4fff1e-723edsf4ba953-2025128-03611.cfg dbaascli database backup --configure --configFile /var/opt/oracle/log/dtrs/staging/tmpl/backup-6b4fff1e-723edsf4ba953-2025128-03611.cfg --dbname v23db8
Backup Configuration Parameter Reference
The following parameters can be modified to customize the backup configuration:
Scheduling Parameters
| Parameter | Description | Compatible with Console Automatic Backups |
|---|---|---|
scheduleBackups |
Enables the automatic backup configuration. Valid values are yes and no. |
No |
manageArchivelogs |
Enables automatic backups of archived database log files. Valid values are yes and no.Setting this to no disables automatic archive log cleanup jobs. This setting is valid only when the associated database has no automatic database backups configured. |
No |
L0BackupDay |
This parameter controls the level-0 day of the week. Day of the week when a level-0 backup is taken. Valid values are mon, tue, wed, thu, fri, sat, and sun. Longer formats, for example, Monday, Tuesday are also supported.Default: sun. |
No |
General RMAN Configuration Parameters
These are valid for all backup destinations except Local Storage (FRA).
| Parameter | Description | Compatible with Console Automatic Backups |
|---|---|---|
compressionLevel |
Level of compression applied to automatic backups. Valid values for Object Storage are NONE, basic, low, medium, and high.Valid values for Recovery Appliance are NONE and low.Default value is low.A value of NONE disables RMAN compression.If RMAN compression is enabled, then any TDE encrypted datafile will be decrypted, compressed, and RMAN encrypted. |
Yes |
sectionSize |
RMAN section size that is used for automatic backups. Default value is 64G. |
Yes |
channelsPerNode |
Number of RMAN channels per node used for automatic backups. Valid values are between 1 and 32.Default value is 4. |
Yes |
autoBackupTime |
Start time of the automatic daily backup expressed in 24-hour time as hh:mm. |
Yes |
backupFrequencyAL |
Interval in minutes between automatic backups of archived database log files. Valid values are 15, 20, 30, 60, 120 through 1440 in one-hour intervals expressed in minutes.Default is 30. |
Yes |
backupDestination |
The type of the location where the backup resides. | Yes |
filesPerSet |
Specifies the maximum number of data files that can be included in a backup set for Regular/Archival backups. | Yes |
filesPerSetAL |
Specifies the maximum number of archive log files that can be included in a backup set for Archivelog Backups. | Yes |
encryption |
Encryption specifies whether backups should be encrypted or not. By default, encryption is enabled for Recovery Appliance and object storage, and this setting cannot be changed. |
Yes |
optimization |
Reduces the amount of data that needs to be backed up, transferred, and restored. Recommended value is on. |
Yes |
numberOfChannelsForFraCleanup |
Specifies the number of channels used for FRA Cleanup job. | Yes |
compressionAL |
Specifies whether to compress archive log backups. Not applicable for Recovery Appliance. |
Yes |
archivelogRetentionDays |
Specifies the number of days to retain archive logs in the FRA. | Yes |
Object Storage Service Parameters
| Parameter | Description | Compatible with Console Automatic Backups |
|---|---|---|
backupDestination=oss |
Enables backups to cloud storage. | No |
ossRecoveryWindow |
Retention period for backups to cloud storage, expressed as a number of days up to 90. Default value is 30. Applicable only when backupDestination is set to oss. |
No |
ossURL |
Location of the storage container that is used for backup to cloud storage. Applicable only when backupDestination is set to oss. |
No |
ossUserName |
User name of the Oracle Cloud user having write privileges on the cloud storage container specified in ossURL.Applicable only when backupDestination is set to oss. |
No |
ossAuthToken |
OCI auth token of the Oracle Cloud user having write privileges on the cloud storage container specified in ossURL.Applicable only when backupDestination is set to oss. |
No |
RMAN Catalog Support Parameters
| Parameter | Description | Compatible with Console Automatic Backups |
|---|---|---|
useCatalog |
Enables the use of an existing RMAN recovery catalog. Valid values are yes and no. |
Yes |
catalogUserName |
Recovery catalog user name. Applicable only when useCatalog is set to yes. |
Yes |
catalogPassword |
Password for recovery catalog user specified in catalogUserName.Applicable only when useCatalog is set to yes. |
Yes |
catalogConnectionString |
Connection string for the RMAN recovery catalog. Applicable only when useCatalog is set to yes. |
Yes |