There was a problem loading the comments.

How to: Restore your MongoDB database using the autobackup file

Support Portal  »  Knowledgebase  »  Viewing Article

  Print

Original Question

or Issue:

You want to restore your MongoDB database using the autobackup file but you are getting an error.

Environment:

  • Product - FileCloud Server
  • Version - Any
  • Platform - Any
  • Application - MongoDB
Steps to Reproduce:

 

 

 

Error or Log Message: If you are using the syntax to restore MongoDB database from autobackup using the instruction indicated in the documentation below, you may encounter errors in the logs showing the following lines below: 
2024-09-25T10:54:13.797-0500    preparing collections to restore from
2024-09-25T10:54:13.798-0500    don't know what to do with file "C:\auto_db_dump_2024-09-25\tonidoclouddb\acls.bson.gz", skipping...

Defect or

Enhancement Number:

 
Cause: The autobackup file is a compressed dump of the MongoDB database. 

Resolution or

Workaround:

To restore a MongoDB database from the autobackup file, you will need to use the --gzip of mongorestore. See the sample syntax below:

    
Linux    
mongorestore --noIndexRestore --drop /tmp/mongodump --gzip


Windows    
cd C:\xampp\mongodb\bin 
mongorestore --noIndexRestore --drop C:\mongodump --gzip

Notes:   

Share via

Related Articles


Self-Hosted Help Desk Software by SupportPal
© FileCloud