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.
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.
Solved this.
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.
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.1
–
Delphine © 2022 - 2024 — McMap. All rights reserved.