OceanBase logo

OceanBase

A unified distributed database ready for your transactional, analytical, and AI workloads.

DEPLOY YOUR WAY

OceanBase Cloud

The best way to deploy and scale OceanBase

OceanBase Enterprise

Run and manage OceanBase on your infra

TRY OPEN SOURCE

OceanBase Community Edition

The free, open-source distributed database

OceanBase seekdb

Open source AI native search database

Customer Stories

Real-world success stories from enterprises across diverse industries.

View All
BY USE CASES

Mission-Critical Transactions

Global & Multicloud Application

Elastic Scaling for Peak Traffic

Real-time Analytics

Active Geo-redundancy

Database Consolidation

Resources

Comprehensive knowledge hub for OceanBase.

Blog

Live Demos

Training & Certification

Documentation

Official technical guides, tutorials, API references, and manuals for all OceanBase products.

View All
PRODUCTS

OceanBase Cloud

OceanBase Database

Tools

Connectors and Middleware

QUICK START

OceanBase Cloud

OceanBase Database

BEST PRACTICES

Practical guides for utilizing OceanBase more effectively and conveniently

Company

Learn more about OceanBase – our company, partnerships, and trust and security initiatives.

About OceanBase

Partner

Trust Center

Contact Us

International - English
中国站 - 简体中文
日本 - 日本語
Sign In
Start on Cloud

A unified distributed database ready for your transactional, analytical, and AI workloads.

DEPLOY YOUR WAY

OceanBase Cloud

The best way to deploy and scale OceanBase

OceanBase Enterprise

Run and manage OceanBase on your infra

TRY OPEN SOURCE

OceanBase Community Edition

The free, open-source distributed database

OceanBase seekdb

Open source AI native search database

Customer Stories

Real-world success stories from enterprises across diverse industries.

View All
BY USE CASES

Mission-Critical Transactions

Global & Multicloud Application

Elastic Scaling for Peak Traffic

Real-time Analytics

Active Geo-redundancy

Database Consolidation

Comprehensive knowledge hub for OceanBase.

Blog

Live Demos

Training & Certification

Documentation

Official technical guides, tutorials, API references, and manuals for all OceanBase products.

View All
PRODUCTS
OceanBase CloudOceanBase Database
ToolsConnectors and Middleware
QUICK START
OceanBase CloudOceanBase Database
BEST PRACTICES

Practical guides for utilizing OceanBase more effectively and conveniently

Learn more about OceanBase – our company, partnerships, and trust and security initiatives.

About OceanBase

Partner

Trust Center

Contact Us

Start on Cloud
编组
All Products
    • Databases
    • iconOceanBase Database
    • iconOceanBase Cloud
    • iconOceanBase Tugraph
    • iconInteractive Tutorials
    • iconOceanBase Best Practices
    • Tools
    • iconOceanBase Cloud Platform
    • iconOceanBase Migration Service
    • iconOceanBase Developer Center
    • iconOceanBase Migration Assessment
    • iconOceanBase Admin Tool
    • iconOceanBase Loader and Dumper
    • iconOceanBase Deployer
    • iconKubernetes operator for OceanBase
    • iconOceanBase Diagnostic Tool
    • iconOceanBase Binlog Service
    • Connectors and Middleware
    • iconOceanBase Database Proxy
    • iconEmbedded SQL in C for OceanBase
    • iconOceanBase Call Interface
    • iconOceanBase Connector/C
    • iconOceanBase Connector/J
    • iconOceanBase Connector/ODBC
    • iconOceanBase Connector/NET
icon

OceanBase Database

SQL - V4.4.2

    Download PDF

    OceanBase logo

    The Unified Distributed Database for the AI Era.

    Follow Us
    Products
    OceanBase CloudOceanBase EnterpriseOceanBase Community EditionOceanBase seekdb
    Resources
    DocsBlogLive DemosTraining & Certification
    Company
    About OceanBaseTrust CenterLegalPartnerContact Us
    Follow Us

    © OceanBase 2026. All rights reserved

    Cloud Service AgreementPrivacy PolicySecurity
    Contact Us
    Document Feedback
    1. Documentation Center
    2. OceanBase Database
    3. SQL
    4. V4.4.2
    iconOceanBase Database
    SQL - V 4.4.2
    SQL
    KV
    • V 4.4.2
    • V 4.3.5
    • V 4.3.3
    • V 4.3.1
    • V 4.3.0
    • V 4.2.5
    • V 4.2.2
    • V 4.2.1
    • V 4.2.0
    • V 4.1.0
    • V 4.0.0
    • V 3.1.4 and earlier

    Backup architecture

    Last Updated:2026-04-02 06:23:56  Updated
    share
    What is on this page
    Physical backup
    Log archiving
    Data backup
    Data cleanup

    folded

    share

    This topic describes the physical backup modes and architecture.

    Physical backup

    OceanBase Database provides the online physical backup feature, which consists of log archiving and data backup. The log backup feature continuously backs up logs generated by a tenant, whereas the data backup feature backs up snapshots. Together, the two features can restore data to any point in time after the backup checkpoint.

    Log archiving

    OceanBase Database provides tenant-level log archiving capabilities.

    The leader of a log stream is responsible for log archiving. Logs are physically backed up based on log streams at the log entry level.

    The default log backup interval is 2 minutes. Logs can be backed up in quasi-real time. By default, directories are split by 24 hours to facilitate backup data management.

    Compared with that in earlier version of OceanBase Databases, such as V2.2.x and V3.x, the log archiving feature in OceanBase Database V4.0.0 is no longer based on partition-level log management. This significantly reduces the number of I/O operations incurred in log archiving and effectively reduces performance requirements on the backup media.

    Data backup

    OceanBase Database provides tenant-level data backup capabilities.

    The data backup process is orchestrated by the RootService node and is carried out according to log streams. The backup data includes the partition’s metadata and macro block data. Physical backup refers to the physical backup of macro block data, while metadata refers to values that have been serialized from memory.

    Each baseline macro block in OceanBase Database has a globally unique logical identifier. This logical identifier enables incremental backups to reuse macro blocks. In OceanBase Database, an incremental backup consists of a full backup of metadata plus a backup of only the incremental data macro blocks. The process and performance of restoring from an incremental backup are essentially the same as restoring from a full backup; the only difference is that macro blocks are read from different backup sets based on their logical identifiers.

    Compared with earlier versions (V2.2.x and V3.x) of OceanBase Database, V4.x removes the dependency on retaining data snapshot points for data backup. Initiating a major freeze during the backup process no longer causes node storage space to bloat.

    In V4.x, when selecting backup servers, OceanBase Database prioritizes the follower nodes of the log stream. This approach reduces the load on the log stream’s leader node and improves backup efficiency. Specifically, the system will first select all eligible follower nodes for backup, and will only choose leader nodes if necessary. This strategy ensures that the backup process is more efficient and stable.

    Data cleanup

    OceanBase Database provides automatic cleanup for the configured backup path. Root Service periodically checks the user-configured backup cleanup policy (DELETE BACKUP POLICY) and deletes unnecessary data backups. The system also deletes unnecessary log backups based on the earliest replay checkpoint of the retained data backups.

    Previous topic

    Backup directory structure
    Last

    Next topic

    Restore process
    Next
    What is on this page
    Physical backup
    Log archiving
    Data backup
    Data cleanup