torrent tool

Verify existing files using a torrent

I just had a nice (btrfs related) crash while copying some finished torrents to my primary workstation (and file vault). The crash happened (of course) just after i've deleted the files from the source server but was soon enough to cause corruption as most of the data was still stored on RAM :-/
So i've hacked a small tool called torrent-tool (download at github)

How does it work

You can use the --show parameter to check an existing torrent file:

Nice (but pretty useless). The real work is done using --verify

The script will now verify the on disk data with the checksums found in foo.torrent.
Please note: this is just a quick hack (and is slow...) - there are probably better tools out in the wild, but hacking together this script was faster than searching for an existing tool ;-)

comments powered by Disqus