DocsUsage GuideCommand Reference

Command Reference

Complete reference for all PDU commands

Syntax Rules

All commands must end with a semicolon (;). E.g.: b; , \l; , unload tab orders;

This documentation applies to Linux and source versions MongoDB 6.0.0, 7.0.0 and 8.0.0. Freeze source copies and launch PDU from a directory outside the sources. State and output use the launch directory without separate path settings. Confirm other versions and special layouts separately.

Incident-Time and Source Recovery Commands

ds recovery idx|status|log|candidates;

Build a recovery index and inspect time evidence, collection relationships and unresolved dependencies.

ds recovery unload [namespace | db <database> | all];

Export complete time-snapshot candidates within evidenced bounds without excluding unchanged records by RESTYPE.

ds journal idx|status;

Index original WT logs independently and inspect continuous-log and checkpoint-LSN relationships.

ds journal replay [namespace];

Build a read-only overlay from original metadata and a continuous commit prefix without writing to sources or target databases.

Fragment Scan Commands

ds fragments idx|status;

Create a plaintext BSON and scalar-field fragment task, or view its native status.

ds fragments unload [documents|fields|structures];

Export complete-document candidates, field fragments or suspected structures separately without confirming business attribution.

ds fragments resolve discard-active [selection];

Abandon an unfinished output unit in a fragment task after confirming the choice.

Database and Collection Commands

b;

Read WiredTiger metadata and the MongoDB catalog to initialize database and collection inventories.

\l;

List currently identifiable databases.

use <database>;

Enter the specified database.

\dt;

List collections in the current database.

\d <collection>;

View collection information and source bindings.

ds catalog status;

View catalog relationships and unresolved dependencies.

ds catalog log;

View native catalog-parsing records.

Data Export Commands

unload coll <collection>;/unload tab

Export a selected collection in the current database.

unload db <database>;

Export collections in the specified database.

ds unload all;

Export parseable records from a single-file or image scan task.

ds batch status;

View collection and database export batch status.

ds batch log;

View batch success, failure and original reasons.

ds resolve discard-active [namespace] [delete|update];

Abandon an unfinished output unit without deleting source files or completed output.

Data Recovery Commands

scan [namespace | db <database> | all];

Scan catalog-bound deletion or update history.

restore [namespace | db <database> | all];

Export offline candidate old data without writing to a database.

ds hs scan <namespace>|all|db <database>|coll <namespace> [delete|update];

Scan history store for the matching collection.

ds hs unload <namespace>|all|db <database>|coll <namespace> [delete|update];

Export parseable old versions from history store.

ds hs discard-active <namespace>|all|db <database>|coll <namespace> [delete|update];

Abandon an unfinished History Store output unit after confirming the choice.

ds preimage scan <namespace>|all|db <database>|coll <namespace> [delete|update];

Scan pre-images with optional explicit operation-timestamp ranges.

ds preimage unload <namespace>|all|db <database>|coll <namespace> [delete|update];

Export attributable old documents and source reasons.

ds preimage discard-active <namespace>|all|db <database>|coll <namespace> [delete|update];

Abandon an unfinished pre-image output unit after confirming the choice.

Disk and File Scan Commands

ds probe <file>;

Probe physical file type and parseable sources read-only.

ds probebatch <directory>;

Probe files in a directory in a batch.

ds idx;

Create or continue a scan task using current sources and configuration.

ds idx status;

View scan task status and native counts.

ds log;

View native scan and single-file task records.

Parameter Commands

param;

View current parameters.

param <name> <value>;

Set a parameter; use true or false for booleans.

show;

Display current sources and configuration.

info;

Display program information and scope.

help;/h

View command help.

exit;/\q

Exit while retaining native task records.

Recovery Case Commands

ds case create <S01..S36|unknown> <objective> [timezone];

Record the recovery scenario, objective and time zone without changing sources.

ds case note <field> <value>;

Add a task evidence field.

ds case source add <directory|wt_file|image|dump|rollback|config|log|platform|unknown> <path> <label>;

Register engineer-declared sources. Multiple sources are attempted independently without automatic business-record merging; unsupported material retains an explicit status.

ds case run <id|all> <current|history|all|deep|deep-fields|deep-structures>;

Run the selected recovery path for specified sources, retaining independent results for each source.

ds case pause|resume;

Pause source tasks; resume only clears this task’s paired STOP. Execute run afterwards to continue, without removing external STOP files.

ds case resolve <id> <mode> [namespace];

Explicitly resolve an active unit for the selected source.

ds case status;

View current case records.

ds case report;

Summarize native case evidence without rereading exported data.

MongoDB 文档