This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
rdm-dev:start [2024/12/12 09:48] ehrmann +new link |
rdm-dev:start [2024/12/17 13:45] (current) torkhov |
||
---|---|---|---|
Line 31: | Line 31: | ||
2. call mongodump in any convenient way for you [[https:// | 2. call mongodump in any convenient way for you [[https:// | ||
+ | |||
+ | 3. save the mongodump conveniently. | ||
- | 3. copy the folder with .bson and metadata into containers' | + | 4. publish |
- | 4. Mongorestore | + | 5. on the host machine run: |
+ | mongorestore \ | ||
+ | --uri=" | ||
+ | --db icgem-test \ | ||
+ | --dir / | ||
5. to automate the process each time a container is reloaded, you will need a .sh script. You mount the .sh script and the mongodump onto the container (this eliminates the necessity of step 3), then the script does step 4. | 5. to automate the process each time a container is reloaded, you will need a .sh script. You mount the .sh script and the mongodump onto the container (this eliminates the necessity of step 3), then the script does step 4. | ||
---- | ---- | ||