[BACKUP COMMAND]: mongodump -u username -p password -d database --port port -o output path.
[ISSUE]: error writing data for collection to disk: error reading collection: Closed explicitly.
The storage requirements of my MongoDB database are constantly increasing. So far the database is using 20 GB of disk space and I am encountering errors when I want to dump the database. It always fails and the above issue is displayed in the terminal shell when I use the above mongodump command. I have to reissue the mongodump command again and again until the backup of the database finishes.
So my questions are:
- Is there a good alternative database backup tool/command for MongoDB?
- Is there a stable and fast backup command for large-scale MongoDB databases?
- Am I using the correct procedure?
mongodump(currently 3.4.15)? If that doesn't resolve the issue, can you please confirm: what type of deployment you have (standalone, replica set, or sharded cluster), your specific O/S version, and yourmongodumpcommand line. For alternative backup approaches, see Backup Methods in the MongoDB manual. For larger or more complex deployments, typical backup approaches are to use backup agents or filesystem snapshots. – Stennie May 20 '18 at 23:14mongodump -u username -p password -d database --port port -o output path. – henry vans May 22 '18 at 01:22