Backup for ATA MongoDB

Kamil Pniak 21 Reputation points
2022-06-23T08:36:52.02+00:00

Hi,

What is the standard process to backup ATA Center and MongoDB ?

In our situation regular vmware backup of the ATA center server is in place.

Is there local dump of files, dump etc to be backed up from the database or maybe a snapshot of the hole server is covering the need for backup?

I know that there is an article like https://www.mongodb.com/docs/manual/core/backups/ but our Backup Team doesnt have an experience with MongoDB.

Thanks in advance!

Windows Server Backup
Windows Server Backup
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Backup: A duplicate copy of a program, a disk, or data, made either for archiving purposes or for safeguarding valuable files from loss should the active copy be damaged or destroyed.
482 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Limitless Technology 39,811 Reputation points
    2022-06-24T11:22:11.56+00:00

    Hi KamilPniak-3382,

    To create a backup of your database in MongoDB, you should use the mongodump command. This command will dump all your datadase data on your server into the dump directory. Then you can use whatever traditional backup systems you like to backup that directory.

    The basic syntax of mongodump command is as follows −

    mongodump

    For example, start your mongod server. Assuming that your mongod server is running on the localhost and port 27017, open a command prompt and go to the bin directory of your mongodb instance and type the command mongodump

    The command will connect to the server running at 127.0.0.1 and port 27017 and back all data of the server to directory /bin/dump/.

    To restore backup data MongoDB's mongorestore command is used. This command restores all of the data from the backup directory.

    I hope this answers your question.

    --------------------------------------------------------------------------------------------------------------------------------------------

    --If the reply is helpful, please Upvote and Accept as answer--

    0 comments No comments

  2. Kamil Pniak 21 Reputation points
    2022-06-24T12:20:39.963+00:00

    Thx LimitlessTechnology-2700 for answer.

    To clarify this topic you mean I will have to set a schedule task each day [probably during the night] to launch mongodump.
    After task will be performed a backup for example simple snapshot from Vcenter should be planned.
    Will it overwrite files created day before or create new ones in the dump directory?

    Something like that will cover what we need for Mongo? :)

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.