mongodump --archive dump.gz --gzip
Run the mongorestore command, specifying the DocumentDB connection string, database name, and collection name: mongorestore documentdb
mongorestore is a command-line utility that allows users to restore data from a MongoDB dump into a DocumentDB or MongoDB database. The tool reads the MongoDB dump files, created using the mongodump command, and inserts the data into the target database. mongodump --archive dump
: DocumentDB requires SSL by default. Download the Amazon RDS Global Bundle and reference it using the --sslCAFile flag. specifying the DocumentDB connection string
mongodump --archive dump.gz --gzip
Run the mongorestore command, specifying the DocumentDB connection string, database name, and collection name:
mongorestore is a command-line utility that allows users to restore data from a MongoDB dump into a DocumentDB or MongoDB database. The tool reads the MongoDB dump files, created using the mongodump command, and inserts the data into the target database.
: DocumentDB requires SSL by default. Download the Amazon RDS Global Bundle and reference it using the --sslCAFile flag.