How to mongo restore from atlas backup files?
Asked Answered
G

1

9

I tried to restore mongo backup files from atlas.

It's containing some wt files. How to restore.

Backup downloaded from Daily Snapshots from atlas.

Thanks in advance.

Guipure answered 17/4, 2020 at 5:56 Comment(2)
Are you trying to restore to Atlas? docs.atlas.mongodb.com/restore/restore-cluster-m2-m5-snapshot/…Mcintire
Oh, sorry to close the question. Solved this.Guipure
G
6

Solved this.

link

Atlas compresses the snapshot into a .tar.gz file. This archive includes the snapshot and the mongod logs.

Once extracted, you can access the data files by starting a mongod instance on the host and pointing it at the extract directory using the --dbpath option.

Guipure answered 19/4, 2020 at 8:49 Comment(2)
For anyone like me looking to read them locally, in the terminal, you want to run mongod --dbpath ../path/to/folder and then once it says something like Listening on 127.0.0.1 you open a new tab in the terminal and type mongo 127.0.0.1Delphine
Link is broken..Dine

© 2022 - 2024 — McMap. All rights reserved.