A Shell Script to Backup MongoDB Database

A Shell Script to Backup MongoDB Database

 

A Shell Script to Backup MongoDB Database


MongoDB is a cross-platform, document-oriented NoSQL database server. In this tutorial, you will find a shell script to backup the MongoDB database. The script also removes backups from servers older than specified days.

Download MongoDB Backup Script

You can copy or download this script directly from 

Also, you can copy this script below:

Schedule MongoDB Backup Script

You can easily schedule this script under crontab to backup databases regularly.

Shell
1
0 2 * * * /backup/mongo-backup.sh
Reactions

Post a Comment

0 Comments

close