Guillaume Bienkowski
04/14/2026, 9:11 AMRocky
04/14/2026, 9:12 AMBACKUP
The official way to back up StarRocks is using the built-in BACKUP and RESTORE commands.
* Application-Level Consistency: StarRocks handles the coordination between FE and BE to ensure that the snapshot is internally consistent.
* Storage Efficiency: It creates a point-in-time snapshot and then uploads it to a remote repository (S3, HDFS, GCS, or MinIO).
* Granularity: You can back up an entire database, specific tables, or even individual partitions.
3. Shared-Data (Compute-Storage Separated) Clusters
If you are using StarRocks in shared-data mode (v3.0+), your data is already stored in object storage (like S3). In this case:
* Physical snapshots of CN (Compute) nodes are unnecessary, as they are stateless.
* Cluster Snapshot (v3.4.2+): StarRocks now supports a dedicated Cluster Snapshot feature for shared-data clusters. This automatically captures the full cluster state (metadata in FE) and maps it to the data in object storage. You can enable it with:
sql
ADMIN SET AUTOMATED CLUSTER SNAPSHOT ON;
4. If you must use Disk Snapshots
If your organization requires disk snapshots for compliance or existing workflows, keep the following in mind:
* Stop Ingestion: Ideally, stop all data loading (Stream Load, Routine Load, etc.) and wait for a few minutes to ensure all data is flushed and "published" before taking snapshots.
* Quiesce the Cluster: While not strictly required for file integrity (StarRocks files are generally immutable once written), it is the only way to ensure FE and BE snapshots are synchronized.
* Metadata Recovery: Restoring from disk snapshots is essentially treated like a "hard crash" recovery. While StarRocks is resilient to crashes, there is a risk that the BDBJE (the metadata store in FE) or the BE tablet versions might require manual reconciliation if they are restored to different points in time.
Summary Recommendation:
Use the StarRocks BACKUP command to store snapshots in a repository (S3/HDFS). This is the only way to guarantee a consistent, restorable state across the entire distributed cluster. If you are on a recent version and using shared-data, use the Cluster Snapshot feature.
References
• administration/cluster_snapshot.md
• administration/management/BE_configuration.mdRobert Raharjo
04/14/2026, 7:09 PM