简体   繁体   中英

Backup strategy in MongoDB

I have a single node setup in MongoDB,

I currently use the mongodump which collects the mongo backup and store in another machine. But I have a scenario that If my last backup time is 12:00 PM and when the system goes down at 12:55 PM then there will be a data loss from 12:00 PM to 12:55 PM

so what is the best way to have zero data loss.

NOTE : I deployed the mongodb in Docker

Any backup strategy is appreciated.

Thanks,
Harry

I have a single node setup

There's your problem. If the only node goes down, you will lose data (if by "going down" you mean irrecoverable loss of the machine and its storage). To avoid data loss and service interruptions, set up a replica set (possibly distributed between data centers or availability zones).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM