Before You Begin
Purpose
This tutorial shows you how to configure automated backups for an Oracle Java Cloud Service instance, back up a service instance, and restore a service instance from a backup, including how to return the instance to service after restoring it.
Last Updated
May 2019, Release 19.2.2
Please note that Oracle develops its cloud services in an agile manner and makes rapid changes to meet our users' needs. Therefore this tutorial may not reflect all of the changes since the last update to this service. For the very latest information see What's New for Oracle Java Cloud Service.
Time to Complete
Approximately 45 minutes
Background
By backing up an Oracle Java Cloud Service instance, you can protect the service instance's software and data against loss if a failure occurs. By restoring a service instance from a backup, you can restore the service instance's software, configuration, and database to their state at the time of the backup.
You can configure automated backups for an Oracle Java Cloud Service instance to customize when the service instance is backed up and how backups are stored.
What Do You Need?
Before starting this tutorial, ensure you have:
- Created an Oracle Java Cloud Service instance with backups enabled. The instructions in this tutorial assume you already have a service instance that you can back up and restore. If you don't have a service instance ready, see the Creating a Custom Oracle Java Cloud Service Instance tutorial for information about how to create one.
- A secure shell (SSH) client:
- Downloaded the sample application benefits.war.
Configuring Automated Backups for a Service Instance
To minimize the disruption of automated backups on your service instance, you have decided that full backups will be performed on Wednesdays at 11 AM UTC, and incremental backups will be performed at the same time on the remaining days of the week. To conserve storage resources, you have decided to retain new incremental backups for 10 days.
-
Sign into the My Services application in Oracle Cloud. Follow the instructions in your Welcome email, or go to http://cloud.oracle.com and click Sign In.
-
From the My Services dashboard click the
navigation menu at the top of the page and choose Oracle Java Cloud Service.
The Oracle Java Cloud Service Console is displayed.
Description of this image -
Click the name of the service instance for which you want to configure automated backups.
Description of this image The Overview page for the selected service instance is displayed, showing details about the instance.
-
Click the Administration tile.
Description of this image The Backup tab on the Administration page is displayed. The current schedule for automated backups is listed at the top of the Backup tab. In the Available Backups table, you might see a list of completed backups that are available for restoration.
Description of this image -
Click Manage backups for this service
on the Backup page, and then select Configure Backups.
Description of this image -
In the Configure Backups dialog set these options and click Save.
- Full Backup: Wednesday 11:00 UTC
- Incremental Backup: 11:00 UTC
- Coordinated Backups: Yes
- Oracle Storage Cloud Service Account Details: Do not modify
- Set new retention period to (in days): 10
Description of this image -
Refresh the page and confirm that it shows the new schedule for automated backups.
Description of this image
Initiating an On-Demand Backup of a Service Instance
Before making a major change to your service instance by deploying an application to the instance, you initiate an on-demand backup of the instance, including the database. You decide to keep the backup indefinitely.
-
Click Manage backups for this service
on the Backup page, and then select Backup Now.
Description of this image -
In the Backup Now dialog, set these options and click Backup.
- Include Database: Yes
- Keep Forever: Yes
-
Notes:
Just before deploying my application.
Description of this image -
Confirm the backup request is submitted and the backup is in progress.
You will see a request submitted message at the top of the page, and a new backup row in the Available Backups table. The icon for the new row has an hourglass, indicating the backup is in progress. The text "Backing up..." is displayed at the end of the row. While the backup is in progress, you cannot start any other management operation on the service instance.
Description of this image -
After a few moments, click the
(Refresh) icon to refresh the Backup page. Do this until the backup operation completes.
Description of this image -
When the backup is complete, confirm that the backup is added to the list of available backups on the Backup page.
There will be a green check mark on the backup icon (instead of an hourglass). Next to the Contains label, you will see icons representing Configuration Backup and Database Backup.
Description of this image
Making a Change to the Service Instance by Deploying an Application
Now that you have backed up your Oracle Java Cloud Service instance, you are ready to make a change to the service instance. In this tutorial you change the service instance by deploying, starting, and testing an application.
Deploying the Application
-
From the
menu near the top of the page (next to the service instance name), select Open WebLogic Server Console.
Description of this image -
Log in to the WebLogic Server Administration Console with the user name and password that were supplied when the service instance was created.
Description of this image The WebLogic Server Administration Console is displayed.
Your browser may display a message about the untrusted (self-signed) certificate that's used by default in your service instance.
Description of this image -
In the Change Center, click Lock & Edit.
Description of this image -
In the Domain Structure panel on the left select Deployments.
Description of this image -
On the Deployments page, click Install.
Description of this image -
On the Install Application Assistant page, click upload your file(s).
Description of this image -
For Deployment Archive, click Browse or Choose File. Select the
benefits.war
application on your local file system to upload and deploy.Description of this image -
After the file is uploaded click Next.
Description of this image -
Ensure the the uploaded file is selected, then click Next.
Description of this image -
Select Install this deployment as an application as the targeting style, then click Next.
Description of this image -
For deployment targets, select the cluster name and All servers in the cluster. Click Next.
Description of this image -
Do not change the default deployment settings. Note the name of the deployment. Click Next.
Description of this image -
Select No, I will review the configuration later, and click Finish.
Description of this image A message is displayed to show that the deployment was successfully installed.
Description of this image The Deployments table shows the application in the distribute Initializing state.
Description of this image -
In the Change Center, click Activate Changes.
Description of this image The changes are activated and no restart is necessary. The Deployments table shows the application in the Prepared state.
Description of this image
Starting the Application
After deploying the application, you must start it to make it ready to accept requests.
-
Click the Control tab at the top of the Deployments page.
Description of this image -
In the Deployments table, select the checkbox to the left of the application.
Description of this image -
From the Start dropdown list, select Servicing all requests.
Description of this image -
When you are asked to confirm that you want to start the application, click Yes.
Description of this image The application is now in the Active state and is ready to accept requests.
Description of this image
Testing the Application
After deploying and starting the application, you test the application to ensure that it is working normally.
If your Oracle Java Cloud Service instance contains a load balancer, use its public IP address to access applications. Otherwise, access applications by using the public IP address of the first node in your service instance.
-
Return to the Oracle Java Cloud Service console. Click the name of the service instance to which the application is deployed.
Description of this image The Overview page for the selected service instance is displayed, showing details about the instance.
-
Find information about your Load Balancer node and note the Public IP address.
Description of this image When a service instance includes a load balancer, the URL of an application is the public IP address of the load balancer, followed by the application name:
https://public_ip_of_load_balancer/application_name
By default, port 443 is used for secure HTTPS connections. If your service instance does not have a load balancer, use the Public IP address of the first WebLogic node instead.
-
Open a new browser window or tab and enter the URL of the application. In this example, the load balancer public IP address is
192.0.2.200
.Description of this image The home page of your application is displayed.
Description of this image