Write a script in Python to take Automatic backup of MongoDb

已查看 482 次
跳至第一个未读帖子

bala wagh

未读,
2014年5月13日 00:53:562014/5/13
收件人 mongod...@googlegroups.com
i am trying to write the backup script in python to take backup of MongoDB.
I have created Primary, secondary and Arbiter on Different Instances. Also done the Replication in between these instances. Also i have tested and it is working fine. Also i am able to take backup manually by using the Mongodump utility like..
mongodump --host XXX.XXX.XXX.141:27017
and it is done successful. But now i want make it automatically by using script in Python. Anybody is having sample script of backup so i can use it for my reference.
OR anyone can help me to make it easy.
 
 

Asya Kamsky

未读,
2014年5月17日 05:27:072014/5/17
收件人 mongodb-user

There are multiple such sample scripts in github.  I believe there is a search option there to limit returned results to a particular programming language.

Asya

--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
 
For other MongoDB technical support options, see: http://www.mongodb.org/about/support/.
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.
To post to this group, send email to mongod...@googlegroups.com.
Visit this group at http://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/0c9e9458-6c8c-4330-b8fd-e59523ae0a0a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

bala wagh

未读,
2014年5月19日 10:46:522014/5/19
收件人 mongod...@googlegroups.com
Thnx Asya for your prompt reply
回复全部
回复作者
转发
0 个新帖子