Back Up and Restore a Domain
Use the backup and restore capabilities of Oracle Cloud Infrastructure Block Volumes to return your Oracle WebLogic Server for OCI domain to a specific state, or to recover from a failure.
About Volume Backups
The backup feature of Oracle Cloud Infrastructure Block Volumes lets you make a point-in-time backup of data on a volume. You can create a new block volume from a backup, and then attach the new volume to a domain's compute instance.
Each Oracle WebLogic Server for OCI compute instance is comprised of three volumes:
- Boot volume - This volume contains the Linux operating system. To restore a boot volume backup, you must create a new compute instance.
Note:
Restoring from a boot volume is not recommended. It must be performed only as a last option. - Block volume (Domain volume) - This volume has the contents of the
/u01/data
folder, including the domain configuration. - Block volume (Middleware volume) - This volume has the contents of the
/u01/app
folder. The Middleware volume is introduced in instances created after release 20.3.3 (September 29, 2020).
Oracle recommends that you create regular backups of all boot volumes and block volumes for your domain. You can create backups manually, or you can configure policies that automatically create backups based on a specific schedule, and retain the backups for a specific period of time.
The first backup of a volume is a full backup, which includes all changes since the volume was created. After the first backup, you can choose to create additional full backups, or to create incremental backups, which include only the changes since the last backup. Both backup types enable you to restore the full volume contents to the point-in-time snapshot of the volume when the backup was taken.
Backups are encrypted and stored in Oracle Cloud Infrastructure Object Storage. Therefore, backups can be restored as new volumes to any availability domain within the same region. You can also copy volume backups across regions for disaster recovery purposes.
You must restart WebLogic Server (or restart the entire compute instance) when you restore a block volume backup. To avoid downtime and ensure your applications remain available to users, Oracle recommends that you create a cluster with multiple compute instances, and that you restore the block volume for one compute instance at a time. This approach is also called a rolling recovery.
When you restore a block volume backup for the first compute instance, the domain's administration server will be temporarily unavailable. However, your applications do not depend on the administration server and will not be affected.
See Overview of Block Volume Backups in the Oracle Cloud Infrastructure documentation.
About Database Backups
If your Oracle WebLogic Server for OCI domain includes the Java Required Files (JRF) components, then Oracle recommends that you back up the database containing the JRF schemas.
When you restore the block storage volumes for a domain from a backup, then you can also restore the database from a backup that was taken at the same time.
The backup and restoration procedures vary depending on type of database: Oracle Autonomous Database or Oracle Cloud Infrastructure Database.
Database Type | Details |
---|---|
Oracle Autonomous Database |
|
Oracle Cloud Infrastructure Database |
Create a Backup
Create a backup of all block volumes for your Oracle WebLogic Server for OCI domain.
You can either take an immediate backup of the volumes, or you can configure a backup policy that takes a future backup according to the policy's schedule.
Note:
Creating a new instance by restoring from a boot volume is not recommended. It must be preformed only as a last option. To backup a boot volume, see Backing Up a Volume.To backup a block volume, complete the following steps:
Restore a Backup
Restore the volumes for your Oracle WebLogic Server for OCI domain from a backup.
Restore to a Previous Domain
If your domain configuration is corrupted, accidentally destroyed, or the domain is not behaving as expected after a change to the binaries, then you can restore the block volumes to a previous working backup.
Tip:
If you have a corrupted or missing domain, follow the restoration steps in this section using the data volume. Format:<my_domain_name>-data-block-node
.
If you have patched or updated the WebLogic binaries and had unexpected results, follow the restoration steps in this section using the mw
block volume. Format: <my_domain_name>-mw-block-node
.
To avoid downtime, Oracle recommends that you restore the block volume for one compute instance in your domain at a time. The remaining compute instances can continue to process client requests.
When you attach a block volume to a virtual machine (VM) compute instance, you have two options for attachment type: iSCSI or paravirtualized. Paravirtualized attachments greatly simplify the process of configuring your block storage but IOPS performance is greater for iSCSI attachments. Bare metal compute instances must use iSCSI attachments. See Overview of Block Volume.
To restore a block volume, complete the following steps:
After you restore the domain, verify that you can access the WebLogic Server administration console and your applications. See: