mongodb - Take mongdb dump from amazon awz from local -


i trying take mongodb dump amazon aws server. kinldy share command

from local working

sudo mongodump -d db** -o /opt/backup/ 

how server

sudo mongodump -d db** -i /opt/x.pem ubuntu@ip:/  

there 3 things need in order make sure remote mongodump possible -

  1. make sure security group allows communications between computer , port 27017 (or other port mongo running on server)
  2. check if mongodb configured bind specific ip (by default binded 127.0.0.1 allows local communications only)
  3. change mongodump command - mongodump -d <db**> -u <username> -p <password> --host <server_ip/dns>

having said that, better ssh server , dump data locally, zip , copy local machine in order minimize network load. if have ssh access server better (and more secure) approach dumping data.


Comments

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -