[mirror-admin] mirror layout to torrent layout script
Matt Domsch
Matt_Domsch at dell.com
Fri Jun 5 01:19:29 EDT 2009
I've thrown together a script which may help mirrors also serve as
torrent seeds.
First, obtain the .torrent files you want, from
http://torrent.fedoraproject.org, or by rsync at
rsync://torrent.fedoraproject.org/torrents/. For my testing, I was
only grabbing the *10* .torrent files. (note: this rsync module only
provides the .torrent files, not the contents of those torrents.)
Then grab this script:
http://domsch.com/linux/fedora/mirror-to-torrent-seed
Run as:
mirror-to-torrent-seed -m /pub/fedora/linux/releases/10 *.torrent
This will hard-link (if possible, else copy), any *.iso files from the
releases/10 (and below) directory tree, into the local directory into
the directory structure expected by the .torrent files.
non-.iso files won't get copied. For our purposes, those are only the
checksum files, and as they have the same names repeated (SHA1SUM),
it's not easy to disambiguate them. So I let bittorrent do that for
us, they're tiny.
Torrent downloaders, such as transmission, will leave the hardlink in
place (as opposed to breaking it).
People willing to review the code to the script and give it a whirl,
I'd appreciate any feedback on it.
Thanks,
Matt
--
Matt Domsch
Technology Strategist, Dell Office of the CTO
linux.dell.com & www.dell.com/linux
--
More information about the Mirror-admin
mailing list