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:

Using dbaascli Utility

Perform the following steps to customize database backup settings:

  1. Connect to the VM as the opc user.

    For detailed instructions, see Connect to a VM with SSH.

  2. Start a root user command shell.

  3. Use the following command to generate a configuration file containing the current backup settings:

    dbaascli database backup --getConfig --dbname <database_name>

    Replace database_name with the name of the database whose backup settings you want to configure.

    The command output provides the path to the generated configuration file.

  4. Open the generated configuration file in a text editor and modify the required parameter values.

    For example:

    vi <file_name>

    Replace file_name with the full path to the generated configuration file.

  5. 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.

  6. Check the status of the configuration update:

    dbaascli database backup --status --uuid <uuid> --dbname <database_name>

    Replace uuid with the UUID returned by the configuration command.

    Confirm that the configuration update completed successfully.

  7. Exit the root user command shell:

    exit

Examples:

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