Restore from external backup (Performance Plan)
You can restore your IBM® Db2® as a Service Performance plan database from an external backup stored in IBM Cloud Object Storage (COS) or Amazon S3. This feature allows you to recover your database from backups stored in your own storage bucket.
Prerequisites
Before starting the restore process, ensure you have the following:
- Access to your Db2 on Cloud console page
- At least one successful internal (snapshot) backup taken on the target instance before initiating external restore
- An existing DB2 backup stored in an IBM Cloud Object Storage or Amazon S3 bucket
- Your endpoint URL along with HMAC credentials (Access Key and Secret Access Key) to access the bucket and backup image
- Sufficient database storage space to accommodate the restored database
The internal backup is required as a safety measure. If the external restore fails, you can recover the database by restoring from the internal backup.
Create internal backup (Prerequisite)
-
Navigate to the External restore tab. If no internal backup exists, you will see a message indicating that an internal backup file is required.
External restore page showing internal backup requirement -
Click Go to internal backup page or navigate to the Backups tab.
-
Click the Run backup button and confirm by clicking Run in the dialog.
Run backup confirmation dialog -
Wait for the backup to complete. You can monitor the progress on the Backups page.
Snapshot backup in progress
Access external restore
-
Once the internal backup is complete, navigate to the External restore tab.
-
Click the External restore button to begin the restore wizard.
External restore page ready to initiate restore
Step 1: Connect external system
In the Connect step, provide the connection details for your external storage:
-
Select your endpoint type: Amazon S3 or IBM Cloud Object Storage.
-
Select Endpoint URL from the dropdown.
-
Enter your Access Key (HMAC access key ID).
-
Enter your Secret access key (HMAC secret access key).
-
Click Test connection to verify the credentials are correct.
-
Click Next to proceed.
Connect external system by entering storage credentials
Step 2: Select backup image
In the Select backup image step, browse and select your backup file:
-
Select your bucket from the dropdown.
-
Navigate through the folder path to locate your backup image file.
-
Select the backup image file (e.g., EUDB.0.eunicec.DBPART000.20251018182026).
-
Click Next to proceed to the confirmation step.
Select backup image
Step 3: Confirm
In the Confirm step, review your selections and configure restore options:
-
Choose whether to perform backup size validation or skip it. Backup size validation checks if your instance has sufficient storage space for the backup before starting the restore. Skipping validation will start the restore immediately, but it may fail mid-process if storage is insufficient.
Confirm restore backup with validation and rollforward options -
Configure the rollforward option:
- Rollforward to end of backup: Completes the restore and brings the database online.
- Rollforward to end of logs: Keeps the database in a rollforward pending state, allowing you to apply additional logs later if needed. When you're ready to make the database available for connections, enable "Complete rollforward" to bring it online.
-
Click Start restore backup to start the external restore.
The database will be unavailable during the restore process. If you choose rollforward to end of logs without enabling "Complete rollforward", the database will remain offline until you manually complete the rollforward.
Monitor restore progress
Once the restore is initiated, you can monitor its progress on the External restore page. The view you see depends on your login type:
For IAM Admins
IAM administrators will see the restore history page where they can monitor the restore status. Use the Refresh button to update the status.
For User Logins
Regular users will see a full-screen progress page during the restore.
During the restore process, console functionality is limited for all users. Regular users are directed to the full-screen progress page, while IAM admins can view the restore history page to monitor status. Restore times can vary depending on the size of the backup and system conditions, and may take anywhere from several hours to a few days.
Complete rollforward
If you selected "Rollforward to end of logs" without enabling "Complete rollforward", the restore will finish in a "rollforward_pending" state:
-
Click the Rollforward button in the Available action column.
-
In the Rollforward dialog:
- Enable Complete rollforward toggle to bring the database online after this rollforward.
- Archive log location will be prefilled based on the selection in the previous external restore step. You can change the path if the new logs are in a different location.
-
Click Start rollforward to proceed.
Rollforward dialog with Complete rollforward toggle and log location -
The status will change to "rollforward_in_progress" and then "finalizing".
Rollforward in progress
External restore finalizing
Verify completion
-
When the restore is complete, the status will show "Completed" with a green checkmark.
External restore completed successfully -
You can expand the restore entry to view the rollforward history, which shows details of each rollforward operation performed.
Completed restore with rollforward history expanded -
The database is now online and available for connections. The console will restore full functionality within a few minutes.
After the restore completes, it may take a few additional minutes for all console features to become fully available while the system completes post-restore setup tasks.
External restore failure
In case of an external restore failure, there are a couple of options to recover the system:
-
Initiate a different external restore: Click the External restore button to start a new restore. For example, if you previously selected a backup image that is not compatible with the system, you can initiate a new external restore with the correct backup image.
-
Reset from internal backup: Click the Reset from last internal backup option to restore from the internal backup you created earlier. This will reset the system to its state before the external restore was attempted.