Reputation: 11
Right now, I'm working with a M0 free tier cluster. The logical size as of now on the cluster is 84MB. I have a few collections.
I want to be able to back this database up and create a local backup on my hard disk so I can use it to restore my DB in case of any issues. However the mongodump process is being interrupted.
Currently when I run this on my CLI
mongodump --uri="mongodb+srv://UserName:Password.mongodb.net/" --gzip --archive="Path/to/backup/backup_zip.gz" --db=myDB
I can back most of the collections, except for the largest one. As of this time there are around 300k entries. After attempting to backup the entries, it fails after around 60% of the collection.
2024-06-03T00:00:00.000+0000 Failed: error writing data for collection `myDB.collection` to disk: error reading collection: connection(connection shard) incomplete read of message header: read tcp 192.168.0.00:00000->AtlasClusterIP:27017: wsarecv: An existing connection was forcibly closed by the remote host.
I have tried to just backup this collection by itself but the same error is occurring
Would appreciate any help, thank you.
Upvotes: 0
Views: 204