DBMAINT.EXE
Make sure you launch command prompt with administrative privileges.
This is a command line utility used for custodial DuVoice database actions. This utility will let you perform a number of database activities such as backup, restore, insert, delete, and more.
Arguments
Argument | Description |
---|---|
-?, -h, or -help | Display options and program information. |
-c | Specify or request an action on a collection. |
-count | Report the number of documents in a collection. |
-default | Default the specified collection. |
-drop | Drop/remove a database or collection |
-export | Export the specified collection as a JSON file. |
-f | Specify different filename other than the default. |
-import | Import a JSON file into a specified collection. |
-list | List databases or collections. |
-o | Output filename or folder. |
-repair | Repair the database. |
-restore | Restore a database or collection. |
-id | ID of record to default. |
-y | Automatically answers yes to prompted questions like “are you sure you want to drop this database?” Should only be used without a user present. |
Examples
Backup the database
dbmaint -backup
Restore the database
dbmaint -restore
Repair the database
dbmaint -repair