mongodump --archive dump.gz --gzip

Use --drop carefully. DocumentDB supports it, but if you drop a large collection, the cluster may take time to reclaim storage. Prefer restoring into a new database when possible. mongorestore documentdb

: Critical for DocumentDB. Because DocumentDB does not support the admin or local databases, you should exclude them to avoid "Feature not supported" errors. Example: --nsExclude="admin.*" . 3. Performance Tuning for Large Migrations mongodump --archive dump

mongorestore documentdb