Re: How to use rsync with files on Mongodb?

779 views
Skip to first unread message

Markus Gattol

unread,
Jul 25, 2012, 8:06:56 AM7/25/12
to mongod...@googlegroups.com
I put some scp info at http://www.markus-gattol.name/ws/mongodb.html#physically_migrate_a_database Note however, as the info at this link states, in order to sync MongoDB sets you don't need external tools such as scp.

Stephen Steneker

unread,
Jul 26, 2012, 12:31:55 AM7/26/12
to mongod...@googlegroups.com
There are two systems client and server, when ever a file is modified on the client it has to be sync'd with the same file on mongodb. How can rsync algorithm can be used to achieve it?

Hi,

How is the file you are rsync'ing related to MongoDB?

For example .. are you referring to normal files in a directory, or files created/updated by your application?

One possibility would be to store the file in MongoDB via the GridFS feature:

Cheers,
Stephen
Reply all
Reply to author
Forward
0 new messages