Is this a valid backup strategy for MongoDB?
Posted
by
James Simpson
on Server Fault
See other posts from Server Fault
or by James Simpson
Published on 2011-06-27T16:15:40Z
Indexed on
2011/06/27
16:24 UTC
Read the original article
Hit count: 263
I've got a single dedicated server with a MongoDB database of around 10GB. I need to do daily backups, but I can't have downtime with the database. Is it possible to use a replica set on a single disk (with 2 instances of mongod running on different ports), and simply take the secondary one offline and backup the data files to an offsite storage such as S3 (journaling is turned on)? Or would using master/slave be better than a replica set?
Is this viable, and if so, what potential problems could I have? If not, how do I conceptualize this to work?
© Server Fault or respective owner