Introduction

In modern data-intensive applications, ensuring database high availability and data integrity is a critical need for every organization. Whether dealing with unexpected hardware failures, software bugs, or natural disasters, a solid backup and recovery strategy is essential to maintaining business continuity. Whaleal Platform (WAP) is designed to meet this demand, offering a robust and flexible data protection solution for MongoDB databases.

Whaleal Platform’s backup strategy combines full backups with incremental backups, ensuring users can quickly restore data to any point in time while optimizing storage and management through flexible strategy settings.



1. Full Backup and Recovery Strategy

Full backup (Snapshot Backup) is a method of taking a snapshot of the entire database at a specific point in time and saving it. It allows for the rapid restoration of the entire database in the event of disaster recovery or large-scale data loss.

Full Backup Process

1.1 Full Backup Process

Whaleal Platform performs full backups by periodically saving the entire MongoDB database to external storage (e.g., S3). The backup process includes:

1.2 Full Recovery Process

In the case of severe data loss or database crashes, full recovery is the key to quickly restoring the system. The recovery steps include:

1.3 Advantages and Use Cases of Full Backup



2. Incremental Backup and Recovery Strategy

Incremental backup refers to backing up only the data that has changed since the last backup. Whaleal Platform efficiently records database changes through incremental backups and can restore the database to any point in time as needed.

Incremental Backup Process

2.1 Incremental Backup Process

Incremental backup is based on MongoDB’s Oplog (operation log), which records every change in the database. The process is as follows:

2.2 Incremental Recovery Process

Incremental recovery involves applying changes recorded in the Oplog after a full recovery. The steps include:

This method allows for precise recovery of each operation, ensuring data completeness and consistency.

2.3 Advantages and Use Cases of Incremental Backup



3. Combining Both Strategies

Incremental Backup Process

The combination of full and incremental backups is the core of Whaleal Platform’s backup and recovery mechanism. By regularly performing full backups and supplementing them with frequent incremental backups, the platform can achieve efficient data protection. Specifically:

This combination not only meets different recovery needs but also optimizes storage resources and reduces the cost of backup operations.

Summary

In conclusion, Whaleal Platform provides a comprehensive backup and recovery solution for MongoDB clusters by integrating full and incremental backups. With its flexibility, efficiency, and scalability, WAP ensures that users can protect their data while minimizing resource usage and maximizing recovery speed. Whether dealing with large-scale disasters or small-scale data changes, Whaleal Platform provides the tools to recover and maintain the health of your MongoDB databases.