Administrator Guide
Automatic Backup and Cleanup of Old Backups for MongoDB Database
You can prevent data loss by automatically backing up MongoDB database, optimize storage space by cleaning old backups, configure scheduled backup with cron job, and perform restore operations from backup with mongodump.
Edit the ‘Ip,Username,Password’ fields specified for the script according to your own Db information.
If you wish, you can ensure the script runs at a specific time or time period. Cron can be used for this.
Add the line below to the opened file.
In example usage, the script will run on the 1st day of each month at 23:59.

