Horje
how to clone databases on mongodb atlas Code Example
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
how to clone databases on mongodb atlas
# Dump db to a local folder
mongodump mongodb://user:pwd@localhost/old_name -o ./dump

# Restore the db with the new name
# all'interno di dump ci saranno tutti i dump di ogni database
# lo specifico db lo raggiungi tramite ./dump/{db_name}
# se non hai user e psw ---> mongodb://localhost:port -d nome_db ./dump/{db_name}
mongorestore mongodb://user:pwd@localhost -d new_name ./dump/old_name

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





Shell

Related
how to remove commit in git extension Code Example how to remove commit in git extension Code Example
set dynamic values with kubernetes yaml file Code Example set dynamic values with kubernetes yaml file Code Example
gcc install mac Code Example gcc install mac Code Example
time machine faster Code Example time machine faster Code Example
how to install gatsby transformer plugin Code Example how to install gatsby transformer plugin Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
12