ft ("fix tar")
ft is a commandline tool to extract as much data from corrupted tar archives as possible.
Some background information about the tool can be found here and in the docs folder of the project.
ft is distributed under the terms of the GNU General Public License (GPL), Version 2.0.
The text of the license is included in the file LICENSE in the root of the project.
The tool is © by Thomas Graf, Thomas Graf (firstname.lastname@example.org)
In order to build ft, you will need the following build requisites:
- gcc (pretty much any version will do
Once you have those tools, change into the
src folder and invoke
make test will run a couple of tests and
make install will install the tool in /usr/local/bin
After building, run
ft will then be installed in
ft copies all data it can find, even if the data is moved within the archive.
ft < damaged.tar > repaired.tar ft < damaged.tar | tee repaired.tar | tar -tf - | tee list.txt ft < damaged.tar | tar --backup=numbered -xvf -
- no options, no output.
- a cut off file is filled with a line break (an error message will be shown).
- it is not guaranteed that TAR extensions actually exist in the expected data.
In order to avoid unwanted overwriting, you should use
tar --backup=numbered -xvf repaired.taror with option
- vendor/POSIX extensions often start with names like
*/PaxHeader/*, those are not shown by
paxdo show them.
- it is quite difficult to deal with all possible situations, due to this the most likely have been chosen :)