In addition to automatic backups scheduled by a backup strategy, you can manually initiate a data backup. Manual backups are not restricted by the backup schedule, but the backup requirements still apply. This topic describes how to create physical and logical backups.
Background information
Physical backup: A physical backup stores physical data from OceanBase Database, such as baseline data, and can be used with log backups to restore data.
Logical backup: A logical backup involves backing up database objects at the object level. It supports table-level and database-level backups. For database-level backups, the supported database objects vary depending on the compatibility mode:
MySQL compatible mode: tables, views, triggers, sequences, synonyms, types, packages, functions, and stored procedures.
Oracle compatible mode: tables, views, functions, and stored procedures.
Considerations
OceanBase Database performs a major compaction once a day by default. A heavy write workload may trigger additional major compactions. Only one data backup can succeed after each major compaction. After a successful backup, another backup attempt before the next major compaction will fail.
Manual backups are limited to data backups and do not affect log backup tasks.
Logical backups are available only to allowlisted users. To enable them, contact OceanBase Technical Support.
Procedure
Log in to the OceanBase Cloud console.
In the left-side navigation pane, click Instances.
In the instance list, find the target instance and click its name to go to the Overview page of the instance.
In the left-side navigation pane, click Backup.
In the upper-right corner of the page, click Create Backup.
Physical backup
On the Back Up Now page, configure the following parameters.
ParameterDescriptionBackup Object A physical backup is performed when the backup object is an instance. Backup Method Select physical backup. Backup Storage Settings You can back up data to OceanBase Cloud storage or hybrid storage (OceanBase Cloud storage + custom storage).
Hybrid storage retains a backup in OceanBase Cloud storage and copies it to your own object storage bucket.
Note
- Alibaba Cloud OSS and AWS S3 are supported. The target bucket must be in the same region as the current instance.
- Hybrid storage is available only to allowlisted users. To enable it, contact OceanBase Technical Support.
If you select OceanBase Cloud Storage, click OK to start the backup. If you select Hybrid Storage (OceanBase Cloud Storage + Custom Storage), complete the following configuration for your instance's cloud provider.
Alibaba Cloud OSSAWS S3In the custom storage configuration, copy the RAM role ARN.

Select an OSS bucket in the same region as the current instance. Use the RAM role ARN copied in the previous step to grant OceanBase Cloud permission to write backups to the bucket. For instructions, see "Step 2: Grant permissions and prepare resources" in Cross-account same-region replication.
Obtain an Alibaba Cloud AccessKey ID and AccessKey secret on the Alibaba Cloud AccessKey page. Return to the OceanBase Cloud console, enter the credentials in the custom storage configuration, and click Validate.

After validation succeeds, select the target bucket in the target object storage bucket field and click OK.
Prepare an S3 bucket in the same region as the current instance and enable versioning on the bucket in advance. OceanBase Cloud does not change the versioning configuration of your target bucket. For instructions, see Enabling versioning on buckets.
In Custom Storage Configuration, check that Storage Provider is AWS S3 and copy the value of RAM Role ARN:. This is the AWS IAM role ARN provided by OceanBase Cloud.

Use the role ARN copied in the previous step to configure the following policy for the target bucket, granting OceanBase Cloud permission to replicate backups to it. For instructions, see Adding a bucket policy by using the Amazon S3 console.
This recommended policy uses the destination bucket permissions in the AWS example Configuring replication for buckets in different accounts. Replace
<OBCloudRoleARN>with the full role ARN provided by OceanBase Cloud and<TargetBucketARN>with the full ARN of the target bucket. Keep the trailing/*in the object resource ARN and all four permissions in the example. If the target bucket already has a policy, add the following two statements to itsStatementarray and retain the existing permissions.{ "Version": "2012-10-17", "Statement": [ { "Sid": "SetPermissionsForObjects", "Effect": "Allow", "Principal": { "AWS": "<OBCloudRoleARN>" }, "Action": [ "s3:ReplicateObject", "s3:ReplicateDelete" ], "Resource": "<TargetBucketARN>/*" }, { "Sid": "SetPermissionsOnBucket", "Effect": "Allow", "Principal": { "AWS": "<OBCloudRoleARN>" }, "Action": [ "s3:GetBucketVersioning", "s3:PutBucketVersioning" ], "Resource": "<TargetBucketARN>" } ] }Prepare a dedicated IAM user, grant it the
AmazonS3ReadOnlyAccesspolicy, and create a long-term access key. For instructions, see "To create an access key for an IAM user" in How an IAM administrator can manage IAM user access keys.Save the access key ID and secret access key. The secret access key is available only when the key is created. STS temporary credentials that include a session token are not supported.
Return to the OceanBase Cloud console, enter the IAM user's access key ID and secret access key in AccessKey ID and AccessKey Secret, respectively, and click Validate.

After validation succeeds, select the target bucket in Target OSS Bucket and click OK.
Logical backup
Note
- For a table-level backup, the number of selected tables must not exceed the instance's logical backup table limit.
- For a database-level backup, the limit applies to the total number of tables in all selected databases.
- The default limit is 200 tables. The effective configuration of the instance determines the actual limit.
On the immediate backup page, select Logical backup.
Configure the following parameters and click Confirm.
ParameterDescriptionBackup object type Logical backups are supported when the backup objects are databases or tables. Source tenant Select the source tenant. Databases Select the databases to back up in Source databases and add them to Selected databases. Tables Select the tables to back up in Source tables and add them to Selected tables.
View the result
On the Data Backup tab, view the basic information of the manually created backup task. You can check the task progress based on the percentage.