[SERVER-4759] mongodump: -d option should complain if the database doesn't exist Created: 24/Jan/12 Updated: 29/Feb/12 Resolved: 24/Jan/12 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Tools |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Chris Westin | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | backup, dump, export | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Participants: |
| Description |
|
If you issue mongodump -d non_existent_database, you don't get an error. It's very easy to make a typo in the database name and have this result in not creating a backup, without any error. |
| Comments |
| Comment by Eliot Horowitz (Inactive) [ 24/Jan/12 ] |
|
we don't check database names or collection names anywhere |