In the simplest case, to protect your data you need to make a backup every 24 hours at night.Ĭreate a directory where you will store your backups. Please note that this command contains the –drop parameter. To restore all the data in the backup, use this command: mongorestore -drop -gzip -archive=my-database.gz ![]() To back up all your data and immediately pack it into an archive, use this command: mongodump -gzip -archive=my-database.gz The mongodb-org package includes two utilities mongodump and mongorestore. This article will help you protect your data for the most popular NoSQL database – MongoDB. One of the main ways to protect your data is to back it up regularly. However, data protection requirements remain the same as for SQL databases. ![]() NoSQL databases allow us to redefine the way we interact with data.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |