I am trying to restore data to sharded cluster using mongorestore.
However, the following error came out.
Failed: cannot do a full restore on a sharded system - remove the ‘config’ directory from the dump directory first
I didn’t know why, so I used the --nsExclude “config.*” option to restore it.
What’s the reason for the error? (Please be more specific.)
When I perform a restoration in a shaded cluster, should I exclude config db that stores metadata, etc.?