[mirror-admin] mirror layout to torrent layout script

Olivier LACROIX olivier.lacroix at ciril.fr
Wed Jun 10 08:54:16 EDT 2009


Le 05/06/09 07:19, Matt Domsch a écrit :
> 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
>
>    
Hi.

Why does you not put the torrent file in the same directory that the ISO 
file ? It would be more easy for the link between the iso and the torrent.

Regards.

-- 

  Olivier LACROIX
  Cellule Réseau Lothaire

  C.I.R.I.L.		|  Tél réseau : +33 3.83.68.24.24
  Château du Montet	|  Tél direct : +33 3.83.68.24.29
  Rue du Doyen Roubault	|  Fax        : +33 3.83.68.24.01
  F - 54500 VANDOEUVRE 	|  email      : Olivier.Lacroix at ciril.fr

--


More information about the Mirror-admin mailing list