C
C
Coder3212016-12-16 12:33:50
linux
Coder321, 2016-12-16 12:33:50

Is it possible to copy a Mongo base from a remote server?

I have remote access to the server where mongo is running. I need to make a database dump and it is desirable to copy this dump to my local computer. Access is only through the console. Can this be done at all? If so, how?
And is it possible to wish it through robomongo?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
K
Konstantin Kitmanov, 2016-12-16
@k12th

If the database does not accept requests from external IPs (and it should be so for good), on the mongodump server (well, or mongoexport, depending on needs) to a file, then download the file to ourselves using scp .
And if the database is open to the outside world, then mongodump takes the --host parameter.
PS I don't know about robomongo.

E
Eugene Wolf, 2016-12-16
@Wolfnsex

Obviously, if you have access to the data, then you can copy it to yourself.
Information on the topic is just a breakthrough, for example , here , it is optimal if you have access "via the console".

K
Ka4a, 2016-12-16
@ka4a

You can dump and make a restor. We look at the syntax on the web.
Further, in any way convenient for you, upload to a server, I use MC. SFTP type [email protected]:222

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question