CLI Tools#

FDB provides CLI tools for archiving and retrieving data, administrative maintenance, and debugging.

All tools can be invoked through the fdb wrapper command or directly as fdb-<command>.

General Purpose Tools#

Command

Description

fdb compare

Compare data between two FDBs or different data versions within one FDB.

fdb info

Show information about the FDB configuration and binaries.

fdb list

List the contents of FDB databases.

fdb purge

Purge duplicate entries and remove associated data.

fdb read

Read data from the FDB and write it to a file.

fdb schema

Print the schema used by an FDB instance or database.

fdb stats

Print aggregated information about FDB databases.

fdb where

Print the location of an FDB database.

fdb wipe

Delete FDB databases and the data they contain.

fdb write

Insert data into the FDB, creating databases as needed.

grib2fdb5

Insert GRIB data into the FDB (legacy tool).

Special Purpose Tools#

Command

Description

fdb hide

Mask all entries in a database so they are permanently inaccessible, without destroying data.

fdb move

Lock and duplicate a database to another root.

fdb overlay

Overlay entries from one database onto another. Advanced use only.

fdb root

Find the on-disk location of specified databases.

Debug Tools#

Command

Description

fdb dump

Dump the structural contents of the FDB (e.g. Table of Contents entries).

fdb dump-index

Dump the contents of a particular index file.

fdb dump-toc

Dump the structural contents of a TOC or subtoc file.

fdb hammer

Simulate the I/O load of a writing process within a forecast.

fdb patch

Re-archive data whilst modifying the class or expver of the database key.

fdb reconsolidate-toc

Repair databases with poorly written or fragmented TOC entries.