how can i convert AGZ file to json so i can load it to my cluster?

1,804 views
Skip to first unread message

adrianmar...@gmail.com

unread,
Apr 16, 2019, 10:41:14 PM4/16/19
to mongodb-user
hello everyone. This one file contains the whole database as an archive file and i want to load it to my cluster. how can i load it? it is in AGZ format
data.agz

Stephen Steneker

unread,
Apr 24, 2019, 2:55:19 AM4/24/19
to mongodb-user

On Wednesday, 17 April 2019 12:41:14 UTC+10, adrianmartinezverax wrote:
hello everyone. This one file contains the whole database as an archive file and i want to load it to my cluster. how can i load it? it is in AGZ format

Hi,

I'm not certain what AGZ format means, but if you are referring to an archive file that was created with mongodump using gzip compression you should be able to use a command line similar to:

mongorestore --gzip --archive=data.agz
 
For more options, see Restore a Database from the Archive File and Restore from Compressed Data on the mongorestore documentation page.

If you created your backup file with a tool other than mongodump, please provide more information on the tool, version, and command line options used.

Regards,
Stennie
Reply all
Reply to author
Forward
0 new messages