Last active
August 29, 2015 14:21
-
-
Save rubeniskov/09f217c15c5292decda7 to your computer and use it in GitHub Desktop.
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
ssh [remote_username]@[remote_address] mongodump --host 127.0.0.1 --db [database_name] --out /tmp/mydump; | |
scp -r [remote_username]@[remote_address]:/tmp/mydump /tmp/mydump && mongorestore --host 127.0.0.1 --db [database_name] /tmp/mydump/[database_name]/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment