This question already has an answer here:
- Mongodb on AWS EC2 backup strategy 1 answer
I'm running MongoDB 4.0 with the WiredTiger storage engine under CentOS 7. The data files are held on a mounted XFS volume.
I can't use my hosting provider's backup service because it doesn't support XFS volumes. This means I need to take snapshots some other way and copy them over to a redundant file system that does have backups enabled.
In addition to the LVM method described I've also looked at
xfsdump and have even considered
rsync (because the data comprises many small files). But regardless of the snapshot/copy method, how do I ensure that the backup is in a consistent state?