L
L
likejavascript2014-03-20 08:54:01
MongoDB
likejavascript, 2014-03-20 08:54:01

Hot backup MongoDB single server - how to write a script?

There is a server running in production MondoDB(TokuMX). It is necessary to configure the database backup script to another server without stopping the first one. Tell me a script that could connect to a running MongoDB instance every day at a certain time and backup a certain database(s). Maybe someone will throw an example of a finished script?
Is it enough just to call such a command, or do I need to provide something else?

[backup-host]# mongodump --host mongodb-host --port 27017 --db mongodevdb --username mongouser --password mongopwd

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Puma Thailand, 2014-03-20
@opium

What do you dislike about your team?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question