I have 3 replicated MongoDBs using NodeJS. I am starting them up as
mongod --port 27017 --dbpath "c:\data1" --replSet rs0
mongod --port 27018 --dbpath "c:\data2" --replSet rs0
mongod --port 27019 --dbpath "c:\data3" --replSet rs0
and in my NodeJS i'm connecting as
mongodb://admin:123456@localhost:27017,localhost:27018,localhost:27019/test?replicaSet=rs0
I need you to :
1) Write a script that makes a daily copy of the rs0 replica
2) Show me how to restore this backup copy manually on a new replica rs1 ( rs0 and rs1 are independent )
3) It needs to restore all usernames/passwords, indexes etc.
4) So in my connection string I can use rs1 instead of rs0
mongodb://admin:123456@localhost:27020,localhost:27021,localhost:27022/test?replicaSet=rs1
I've attached my NodeJS app here. You can show me how to restore and backup via Skype's remote desktop.
Hi,
I would like to work on this project. I understand that you want to backup your Mongodb replica set and restore it to another set.
Do you want this functionality as a part of your nodeJS application or a different script will do?
Mongodb backup and restore can be done via its client tools like mongodump and mongorestore. These can be combined in a simple script to run daily at preset times.
I can also extend your nodeJS application to add functionality to backup the database and restore it.
Thanks
Manish
$30 USD σε 0 ημέρα
5,0 (4 αξιολογήσεις)
2,1
2,1
5 freelancers δίνουν μια μέση προσφορά $27 USD για αυτή τη δουλειά
Hi, I have been working with MongoDB for past 5 years with both development and ops related. I have set up new replicas like how you wanted, a number times in various production systems during the due course.
I can help you solve your problem quickly with high quality. Just give go and we'll get started on this!
Built a site from scratch using Node, and am more than ready to help with this task of yours. Going to be working with MongoDB soon so the experience is much appreciated.