LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

mongorestore

restores MongoDB data from mongodump output

TLDR

Restore from dump directory
$ mongorestore [dump/]
copy
Restore specific database
$ mongorestore --db=[database] [dump/database/]
copy
Restore to remote host
$ mongorestore --host=[hostname] --port=[27017] [dump/]
copy
Restore with drop
$ mongorestore --drop [dump/]
copy
Restore from archive
$ mongorestore --archive=[backup.archive]
copy

SYNOPSIS

mongorestore [options] [directory]

DESCRIPTION

mongorestore restores MongoDB data from mongodump output. Part of MongoDB Database Tools. Restores BSON files to MongoDB collections. Supports full and selective restoration.

PARAMETERS

--db name

Target database name.
--collection name
Target collection.
--drop
Drop collections before restore.
--host host
MongoDB host.
--archive file
Restore from archive file.
--gzip
Decompress gzipped input.

INSTALL

sudo apk add mongodb-tools
copy
nix profile install nixpkgs#mongodb-tools
copy

SEE ALSO

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid