Created
August 27, 2017 23:26
-
-
Save LispyAriaro/8733ed1d43b126e4bcd69eea1dcacb07 to your computer and use it in GitHub Desktop.
Helpful - Scp - Ssh - MongoDb commands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### To download a file from your ec2 ubuntu instance to your local computer CURRENT directory | |
``` | |
scp -i ~/.ssh/YourPrivateKey.pem -r [email protected]:/home/ubuntu/folderYouCareAbout/ . | |
``` | |
### To restore a mongodb database | |
mongorestore --db dbname dbfolder | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment