Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

mongodb clone database

# Dump db to a local folder
mongodump mongodb://user:pwd@localhost/old_name -o ./dump 

# Restore the db with the new name
mongorestore mongodb://user:pwd@localhost -d new_name ./dump/old_name

# Try this flag if you get an authentication error
--authenticationDatabase admin
Comment

PREVIOUS NEXT
Code Example
Shell :: https://cloud.google.com/python/docs/reference/cloudscheduler/latest/google.cloud.scheduler_v1.services.cloud_scheduler.CloudSchedulerClient#google_cloud_scheduler_v1_services_cloud_scheduler_CloudSchedulerClient_delete_job 
Shell :: start automount daemon aix 
Shell :: ssh keep connection 
Shell :: linux copy files across servers 
Shell :: remove detached disk from raid array linux 
Shell :: pull environment variables with helm charts 
Shell :: git synchronize a branch in a fork 
Shell :: master branch renamed 
Shell :: Powershell mount disk image and retrieve drive-letter 
Shell :: configure rest api for docker in windows 
Shell :: How do I push a new local branch to a remote Git repository and track it too? 
Shell :: more wsl2 images 
Shell :: git pull from dev keep feature branch 
Shell :: http 192.168.l.l admin airtel 
Shell :: parse json logs in loki, promtail 
Shell :: dockerfile export to local file 
Shell :: kali linux disable root command 
Shell :: wc exclude . and .. directories and empty or commented lines 
Shell :: Command to install parse-url module 
Shell :: exiting nano 
Shell :: remove mac ._ files windows 
Shell :: github status 
Shell :: how to find and replace in nano editor 
Shell :: powershell combine csv files 
Shell :: docker install google chrome 
Shell :: instal rust lang on linux 
Shell :: how to change git default branch name 
Shell :: swap ctrl and caps lock linux 
Shell :: how to permantely install library in collab 
Shell :: sudo yum install rh-python38 
ADD CONTENT
Topic
Content
Source link
Name
8+7 =