OS Manuals

/usr/bin/thin_restore

Tools for checking, repairing and dumping dm-thin, dm-cache and dm-era metadata

From thin-provisioning-tools 1.3.4-r5 (enterprise-packages), captured 2026-11-08 by running thin_restore --help (exit 0). permalink

Convert XML format metadata to binary.

Usage: thin_restore [OPTIONS] --input <FILE> --output <FILE>

Options:
      --data-block-size <SECTORS>  Override the data block size if needed
  -h, --help                       Print help
  -i, --input <FILE>               Specify the input xml
      --nr-data-blocks <NUM>       Override the number of data blocks if needed
  -o, --output <FILE>              Specify the output device
  -q, --quiet                      Suppress output messages, return only exit code.
      --transaction-id <NUM>       Override the transaction id if needed
  -V, --version                    Print version
Options (8)
OptionDescriptionSource
--data-block-size SECTORSOverride the data block size given in the input xml.help + man
-h, --helpPrint help and exit.help + man
-i, --input FILEInput file containing XML metadata.help + man
--nr-data-blocks NUMOverride the nr data blocks given in the input xml.help + man
-o, --output FILEOutput file or device for restored binary metadata.help + man
-q, --quietSuppress output messages, return only exit code.help + man
--transaction-id NUMOverride the transaction id given in the input xml.help + man
-V, --versionPrint version information and exit.help + man
Examples (1) from the manual page, untested

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.