Introduction :

Oracle database automated backups are stored in Oracle Managed Object Store Buckets in OCI. This blog covers step by step process to download the database backup from OCI storage.

Step 1: Download MV2Bucket

Download the latest version of mv2bucket from Doc ID 2723911.1

Step 2: Install the MV2Bucket in target server

sudo rpm -i mv2bucket-2.0.2-4.el7.x86_64.rpm

Verify the package is installed in target server,

ls -l /opt/mv2bucket

Step 3: Download the Database backup

Create a folder to download the backup.

mkdir -p /u01/backup

Run the below mv2bucket command to download the backup from OCI storage to target server.

sudo /opt/mv2bucket/mv2bucket.bin get –dbuniquename <database unique name> –stage <backup location> –begin <Begin Date> –end <End Date> –incremental

Demo :

root$ sudo /opt/mv2bucket/mv2bucket.bin get –dbuniquename PROD_DB –stage /u01/backup –begin 20240221 –end 20240222 –incremental

INFO: 2022-09-06 17:30:10: Database ‘PROD_DB’ existence check

WARNING: 2022-09-06 17:30:18: Target stage ‘/u01/backup’ looks empty, skipping incremental copy

INFO: 2022-09-06 17:30:18: Getting ‘181’ Oracle Managed Bucket files, it will take time, please wait…
SUCCESS: 2022-09-06 17:30:37: Files downloaded from Oracle Managed Bucket successfully

Conclusion :

Automatic Backups are configured with a click of a button. The backups are stored in an oracle-managed bucket in the same region as the database. You can use the mv2bucket utility to copy the automatic backups to a customer-managed bucket in the same or a remote region.

Recent Posts

Start typing and press Enter to search