Skip to content.

Scientific Linux

Sections
Personal tools
You are here: Home » Download » Mirroring » Tips on Mirroring S.L.

Tips on Mirroring S.L.

Some tips to help mirroring Scientific Linux go better.

Make sure your syncing system has a reverse lookup record.

  • Cut out all the extra stuff that you really don't need.
    We have found a few directories that you can exclude that will cut your needed space by at least half. They are listed are...
    • archive/debuginfo - SL5, SL6
      Most of the RPM's make a rpm called 'debuginfo'. These rpm's are generally big, and very rarely used. At least two of the developers have never used these. If somebody does need them, they can get them from the central repository.
    • archive/obsolete - SL5, SL6
      These are rpm's that have become obsolete because newer rpm's are now in the distribution. They are kept incase somebody needs one for some reason. But there is really no reason to mirror them. If somebody does need them, they can get them from the central repository.
    • iso/ - SL5, SL6
      These are the CD and DVD iso images. By excluding this, you save quite a bit of disk space.
    • SRPMS/ - SL5, SL6
      This is where we keep the source for Scientific Linux. By excluding this, you save quite a bit of disk space.
    • i386/build/ x86_64/build - SL5
      These are some of the tools used in building Scientific Linux, if you don't plan to make your own site, you don't need these.
    • sites/Fermi - SL5
      This is the stuff that Fermilab add's to make Scientific Linux Fermi. It mainly contains things that will really only work at Fermilab, so there really isn't much point in mirroring this. The whole sites/ directory includes samples for making your own site. You probably don't need to mirror any of this, but you may want to review it for making your own site.
  • Syntax for excluding files or directories
    lftp
    For lftp you use the --exclude statement, then a space, and then the name you want to exclude. Anything that matches the name, whether in it's path, or in the actual filename, will be excluded.
    If you want to have multiple excludes, you have to use the --exclude statement for each one. Here is an example.
    --exclude sites/Fermi --exclude errata/debuginfo --exclude errata/obsolete
    

    rsync
    For rsync you use the --exclude statement, then a = and then the name you want to exclude. Anything that matches the name, whether in it's path, or in the actual filename, will be excluded.
    If you want to have multiple excludes, you have to use the --exclude statement for each one. Here is an example.
    --exclude=sites/ --exclude=errata/debuginfo --exclude=errata/obsolete --exclude=i386/build --exclude=x86_64/build
    
  • Only mirror the distributions that you need/want.
    This sounds like common sense, but occasionally people forget it. Don't just mirror everything under /scientific/ unless you really want a full copy of everything. Many places really only want to mirror the latest release's, in wich case they should be sure to just mirror /scientific/5x/ or /scientific/6x/

Created by dawson
Last modified 2013-04-22 12:26 PM
 

Powered by Plone

This site conforms to the following standards: