How to mongorestore downloaded backups? #2

Closed
opened 2026-04-05 16:15:35 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @elixx on 4/4/2026

I have downloaded the backup .archive from this screen:

Image

However, I'm struggling to get mongorestore to accept the file.

> mongorestore --gzip --archive wrigley_backup_2026-04-02_11-04-05.archive --db vibescan --collection results mongodb://172.19.0.3:27017
2026-04-03T13:21:53.154-0400    The --db and --collection flags are deprecated for this use-case; please use --nsInclude instead, i.e. with --nsInclude=${DATABASE}.${COLLECTION}
2026-04-04T10:30:56.304-0400    Failed: gzip: invalid header
2026-04-04T10:30:56.306-0400    0 document(s) restored successfully. 0 document(s) failed to restore.

> file wrigley_backup_2026-04-02_11-04-05.archive
wrigley_backup_2026-04-02_11-04-05.archive: gzip compressed data, original size modulo 2^32 3106423326 gzip compressed data, reserved method, ASCII, has CRC, encrypted, from FAT filesystem (MS-DOS, OS/2, NT), original size modulo 2^32 3106423326

I find it curious that the gzip data is detected as encrypted; Do I need to follow the instructions at https://databasus.com/how-to-recover-without-databasus before doing a mongorestore?

Any advice would be appreciated. I'm trying to restore the databasus backups to a separate server.

*Originally created by @elixx on 4/4/2026* I have downloaded the backup .archive from this screen: <img width="975" height="171" alt="Image" src="https://github.com/user-attachments/assets/27ca82f1-99e3-460e-8f92-f4353453e75b" /> However, I'm struggling to get mongorestore to accept the file. ``` > mongorestore --gzip --archive wrigley_backup_2026-04-02_11-04-05.archive --db vibescan --collection results mongodb://172.19.0.3:27017 2026-04-03T13:21:53.154-0400 The --db and --collection flags are deprecated for this use-case; please use --nsInclude instead, i.e. with --nsInclude=${DATABASE}.${COLLECTION} 2026-04-04T10:30:56.304-0400 Failed: gzip: invalid header 2026-04-04T10:30:56.306-0400 0 document(s) restored successfully. 0 document(s) failed to restore. > file wrigley_backup_2026-04-02_11-04-05.archive wrigley_backup_2026-04-02_11-04-05.archive: gzip compressed data, original size modulo 2^32 3106423326 gzip compressed data, reserved method, ASCII, has CRC, encrypted, from FAT filesystem (MS-DOS, OS/2, NT), original size modulo 2^32 3106423326 ``` I find it curious that the gzip data is detected as encrypted; Do I need to follow the instructions at https://databasus.com/how-to-recover-without-databasus before doing a mongorestore? Any advice would be appreciated. I'm trying to restore the databasus backups to a separate server.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/databasus#2