Reputation: 47102
Is it possible to set mongodb to start replicating itself at a certain point in time? For example every Sunday at 3 a.m. replicate from one data center to another?
Upvotes: 1
Views: 27
Reputation: 2231
If you are okay with having a fixed, continuous delay (e.g. 1 day) between the two data centers, you should look into delayed replica set members.
Otherwise, you can probably script that by disrupting the connection between the two data centers and restoring it when you want it to sync. But that doesn't sound great: you would need an oplog large enough to fit all the changes and make sure you don't end up with a primary on both sides.
Upvotes: 1