User Tools

Site Tools


rdm-dev:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
rdm-dev:start [2024/10/15 13:09]
torkhov
rdm-dev:start [2024/12/17 13:45] (current)
torkhov
Line 4: Line 4:
 [[rdm-dev:Metadateneditor V2|Metadateneditor V2]] [[rdm-dev:Metadateneditor V2|Metadateneditor V2]]
  
 +[[rdm-dev:SAMDAT|SAMDAT project]]
 +
 +[[rdm-dev:Deployment for Websites|Deployment for Websites]]
  
 == Nützliches == == Nützliches ==
Line 28: Line 31:
  
 2. call mongodump in any convenient way for you [[https://www.mongodb.com/docs/database-tools/mongodump/]] 2. call mongodump in any convenient way for you [[https://www.mongodb.com/docs/database-tools/mongodump/]]
 + 
 +3. save the mongodump conveniently.   
  
-3copy the folder with .bson and metadata into containers' environment. In my case container is called mongodb and the command goes: ''docker cp /Users/torkhov/Documents/coDING/wsgi_chery_frontend/icgem-LOCAL/mongodump/dump/icgem-test mongodb:/backup/icgem-test'' +4publish the database at portfor example, 27017
  
-4Mongorestore the copied volume inside container+5on the host machine run:  
 +mongorestore \ 
 +  --uri="mongodb://username:password@localhost:27017"
 +  --db icgem-test \ 
 +  --dir /mongo_dump/icgem-test
  
 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. 
 ---- ----
  
rdm-dev/start.1728997787.txt.gz · Last modified: 2024/10/15 13:09 by torkhov