以下教程介绍了分片集群的备份和恢复:
提示
To use mongodump and mongorestore as a backup strategy for sharded clusters, see Back Up a Self-Managed Sharded Cluster with a Database Dump.
分片集群还可以使用以下协调备份和恢复流程之一,以确保跨分片事务的原子性:
- 使用文件系统快照单独备份分片集群中的每个组件。该过程涉及停止集群负载均衡器。如果您的系统配置允许文件系统备份,这可能比使用 MongoDB 工具更高效。
- Create backups using
mongodumpto back up each component in the cluster individually. - 限制集群负载均衡器的操作,以便为常规备份操作提供窗口。
- 从备份恢复整个分片集群的过程和注意事项概述。
- 从数据库转储恢复自管理分片集群
- Restore a sharded cluster from a backup created with
mongodump.