I actually set up a CPAN mirror earlier this year.

Unless you find that you can get significantly better network performance on a closer mirror, I recommend just going with funet.fi. From what I've gathered in my communications with them, they don't seem to mind, and it really is the most reliable. (You should still ask first). I started with a local mirror, but then switched over to funet whenever that other mirror dropped off the face of the planet without a trace.

As for the MOTD, you need to understand that ftp.funet.fi rsync server is hosting more than just CPAN. That MOTD is saying don't try to download their entire site. If all you are doing is rsync'ing the CPAN repository, that is ok.

I definately suggest rsync over ftp. If your security people don't know what rsync is, work hard to extend them a clue. As of this morning the repository size is 1.2 gigs. My last rsync (running twice a day) used less than 9 megs of traffic and took about 4 minutes for all of CPAN (your speed results will vary depending on your bandwidth).

Other advice:

  • If you are setting up a cron job to update your mirror, make sure you mail yourself the results so that you can monitor everything. I'm glad I did this or I would have never known that the mirror I was maintaining went stale when the other mirror disappeared.
  • Make sure when you pubilish the mirror, you make it available in /pub/CPAN and not in your document root. This will make things easier on you later if you ever decide you want to participate in load balancing.

    If you have any other questions, feel free to msg me, or email me.. cpan@pair.com. :)


    In reply to Re: Advice on building a CPAN mirror by ehdonhon
    in thread Advice on building a CPAN mirror by rah

    Title:
    Use:  <p> text here (a paragraph) </p>
    and:  <code> code here </code>
    to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.