bradoyler / mongo-backup-to-s3

stream mongodb backups to S3, with ease
http://bit.ly/stream-mongo
10 stars 7 forks source link

What format has the file on S3? #2

Open achimkoellner opened 8 years ago

achimkoellner commented 8 years ago

Hi Brad,

this is a great lib! Export and Transfer to S3 seem to work for me but what kind of format/encoding is the resulting file on S3? I set up a tiny test db with one collection and the .dmp file on S3 looks about like this:

Rtypemongo-dump-streamversion2endOfCollection 8oYf5/cL3Pw=�type collectionnamepersonindexesN0Fvkey_idnameidnsdumptest.person2_idWne�U^�QwnameAchimage422_idWne�U^�QxnameLuiseage11'endOfCollection 8oYf5/cL3Pw=type endDatabase

I'm planning to fetch back the dump to restore it to a mongodb and expected to see bson-files or something.

bradoyler commented 8 years ago

Output should be BSON. See: https://github.com/punkave/mongo-dump-stream/blob/master/README.md

achimkoellner commented 8 years ago

I see - you mean BSON, right?

bradoyler commented 8 years ago

Yep

emadb commented 8 years ago

It seems that mongo-dump-stream is deprecated and the .dmp file is not readable. https://github.com/punkave/mongo-dump-stream/blob/master/README.md#deprecated-for-new-projects-newer-versions-of-mongodb-32x-have-equivalent-utilities-and-also-fail-to-restore-databases-dumped-with-this-utility