TTDBCK(1m)
π ttdbck β display, check, or repair ToolTalk databases
okay so bestie, welcome to ttdbck π β it lives in the user cmd section of the manual (yes that's the vibe, we're fancy here) and it is literally the ToolTalk database maintenance tool. like, the whole point: it lets you peek directly at ToolTalk spec data, spot inconsistencies, and fix problems. slay. β¨
β¨ SYNOPSIS β¨
ttdbck [selection opts] [diagnosis opts] [display opts] [repair opts]
[data-base-directory] [...]
πΈ DESCRIPTION πΈ
ttdbck is the ToolTalk database maintenance tool. it gives you direct inspection of ToolTalk spec data, detection of inconsistencies, and repair of problems. that's the whole personality π
π OPTIONS π
ποΈ data-base-directory
data-base-directoryβ names the directory (or directories!) containing the ToolTalk database you wanna inspect or repair. if you name no directories, the current directory is assumed, no big deal. and if a directory path doesn't end inTT_DB, thenTT_DBgets appended to it. automatic. β¨
ngl, permissions matter here: whoever runs this command must have read access to the files in the directory to inspect the data, and write access to repair the data. and since ToolTalk databases are typically accessible only toroot, this command is normally run asroot. π
π Selection options
these determine which specs in the database get displayed or modified. if you give no selection options, then all specs in the database are displayed β every single one, bestie. π and to prevent massive accidental changes to ToolTalk databases, no repair options except -I are allowed unless a selection or diagnosis option is given. the tool is literally protecting you from yourself π«Ά
-ffilename β restricts the set of specs to be inspected or modified to those which describe objects in the named file. the file name can contain shell-style wildcards, which must be escaped to prevent the shell from expanding them. π-kobjidkey β an object id key, specifying a particular spec to be displayed or modified. you can grab the object id key from a previous invocation ofttdbck; like, you might display a set of specs, figure out the one that needs repair, and then specify its key here. iykyk π₯-ttype β restricts the set of specs to be inspected or modified to those with otype type. the type name can contain shell-style wildcards, which must be escaped to prevent the shell from expanding them.
π©Ί Diagnosis options
these options check for and report on inconsistencies in the selected specs. β only specs selected by the selection options are checked. and if a diagnosis option is given, any display or repair option is applied only to specs which fail the diagnostic check. so efficient π
-bβ check for badly formed specs: those which have no file or type, or those which have types not defined in the type database.-xβ check for specs which refer to files that no longer exist. rip to those files πͺ¦
π¨οΈ Display options
these determine which data gets printed for each selected spec.
-iβ display the object id (including the object id key.)-mβ display the mandatory data that must appear in every spec: the otype of the object described by the spec, and the file in which the spec is stored.-pβ display all the properties and values for each selected spec.-aβ display all data (equivalent to specifying-imp). the full lore drop π
π οΈ Repair options
-Iβ invoke the NetISAMisrepair()function for all files accessed. this action is applied before any other inspection or repair action. use this option when normal operations returnEBADFILE(error code105). π§-Ffilename β change the file name for the selected specs to the supplied file name.-Totypeid β change the type of the selected specs to the given otype.-Zβ remove the selected specs entirely. gone. deleted. not me being dramatic π
π EXAMPLES π
ttdbck -bxi /home
in the /home/TT_DB directory, finds all badly formed specs and specs that refer to non-existent files, and prints their ids. cute and diagnostic π
ttdbck -f /home/sample/data -F /home/sample/data1 /home
in the /home/TT_DB directory, finds all specs that refer to objects in file /home/sample/data and changes them to refer to /home/sample/data1. glow-up for your paths β¨
ttdbck -t Sample_Otype_Name -Z /export/TT_DB
in the /export/TT_DB directory, finds all specs that refer to objects of type Sample_Otype_Name and deletes the specs. periodt. π
π FILES π
/path/TT_DBβ ToolTalk database
β οΈ NOTES β οΈ
thettdbckcommand should be run on the same machine where theTT_DBfiles being inspected and repaired physically exist. that is, don't try to access theTT_DBfiles via NFS. like, just don't. it's giving chaos π«π¦
and that's the whole page bestie π«Ά β this was ttdbck from the user cmd manual section, no cap, go fix your databases ππ
π¦ where this page comes from
- nixos 26.05: cde 2.5.3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms