Backing Up to Local Storage Using the Database CLI

Note

This topic is not applicable to virtual machine DB systems because they have no local storage. For Exadata DB systems, see Backing Up an Exadata Database.

This topic explains how to back up to the local Fast Recovery Area on a bare metal DB system by using the database CLI (dbcli). Some sample dbcli commands are provided below. For complete command syntax, see the Oracle Database CLI Reference.

Note

Backing up to local storage is fast and provides for fast point-in-time recovery, however, if the DB system becomes unavailable, the backup also becomes unavailable. For information about more durable backup destinations, see Backing Up a Database.

Backing Up the Database to Local Storage

You'll use the dbcli commands to create a backup configuration, associate the backup configuration with the database, initiate the backup operation, and then review the backup job.

SSH to the DB System.

ssh -i <private_key_path> opc@<db_system_ip_address>

Log in as opc and then sudo to the root user. Use sudo su - with a hyphen to invoke the root user's profile, which will set the PATH to the dbcli directory (/opt/oracle/dcs/bin).

login as: opc
[opc@dbsys ~]$ sudo su -

Create a backup configuration by using the dbcli update-backupconfig command and specify local disk storage as the backup destination.

The following example creates a backup configuration named prodbackup and specifies a disk backup destination and a disk recovery window of 5 (backups and archived redo logs will be maintained in local storage for 5 days).