Description
I'm considering implementing backup using the autopilot redis example as a starting point.
Any prior knowledge I should be aware of?
From the little knowledge I have on hosted MongoDB clusters they tended to use a hidden replica set member to perform backups on. That may be a bit overkill for this example but something to be considered.
Since MongoDB clusters are likely rather large, how can we do snapshots AND full backups? I've never used Manta so I'm using this as a way to learn more about it. Should I just implement full backups for the example and possibly expand it in the future? I'm assuming I can pipe data into manta?
MongoDB Cloud Manager uses the oplog to offer snapshots and point in time recovery. Again, I'm assuming that is overkill for this example.
MongoDB's documentation for backup clearly states using mongodump and mongorestore are only designed for smaller datasets. At the very least, I will make sure that is apparent in the readme if that is the route you guys want to go. I'll use --oplog
and --oplogReplay
against a replica for backup.
I'll need to take into account access control if you plan on merging PR #11 any time soon.
mongodump
I'm planning on using the following options:
- --readPreference
- --gzip
- --archive
- --oplog - I need to research whether this works in conjunction with
--archive
as it is not mentioned in the documentation.