The following tutorials describe backup and restoration for sharded clusters:以下教程介绍了分片群集的备份和恢复:
Tip
mongodump
and mongorestore
cannot be part of a backup strategy for 4.2+ sharded clusters that have sharded transactions in progress, as backups created with mongodump
do not maintain the atomicity guarantees of transactions across shards.mongodump
和mongorestore
不能作为正在进行分片事务的4.2+分片群集的备份策略的一部分,因为使用mongodump
创建的备份无法维持跨分片事务的原子性保证。
For 4.2+ sharded clusters with in-progress sharded transactions, use one of the following coordinated backup and restore processes which do maintain the atomicity guarantees of transactions across shards:对于具有进行中分片事务的4.2+分片群集,请使用以下协调的备份和恢复过程之一,这些过程确实维护了跨分片事务的原子性保证:
mongodump
to back up each component in the cluster individually.mongodump
创建备份,分别备份集群中的每个组件。