For details, please visit Outsourced Managed IT Services. To open access from your own host IP, you need to open port number 27017 (MongoDB server Port) to all connections or to specific IP in the firewall.Īt Velan, our database support engineers can help you with your database-related issues. In certain cases, we may have to give access to users on the new servers. Access to users on the Production server.Mongorestore -host=mynewserver -port=27017 -username=user -authenticationDatabase=admin -dbexampledb /opt/backup/mongodump-exampledb # mongorestore -host -ssl -username -password -authenticationDatabase admin -db -collection įor eg: To restore the exampledb database, we used Once the backup file has been copied to the destination server, mongorestore command is used to restore the database. Restore MongoDB database in the destination server.In normal servers, this requires firewall changes to that the connection between the servers can work. To make scp work, we need to adjust the security group settings from the AWS console. WE used scp to transfer files as development and production servers were in AWS. WE can use the scp or rsync commands to copy the files. The next step is to copy the backed-up files to the destination server.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |