Mirror using apt-mirror and exclud certain sections/categories
        Posted  
        
            by 
                Onitlikesonic
            
        on Ask Ubuntu
        
        See other posts from Ask Ubuntu
        
            or by Onitlikesonic
        
        
        
        Published on 2012-10-17T09:30:13Z
        Indexed on 
            2012/10/17
            11:22 UTC
        
        
        Read the original article
        Hit count: 534
        
I'm currently using apt-mirror to create a local mirror of the debian repositories.
As the mirrored repositories will be used only by machines destined to be headless servers and as an effort to reduce the current mirroring size (around 75GB), categories like games and possibly others will never be needed.
How can I go about specifying (on the mirror.list perhaps?) what sections/categories I want to be excluded from the mirroring?
Maybe a bit subjective, but apart from games what other sections/categories could be "safely" ignored from the mirroring for my environment purposes?
My mirror.list looks as below since all the machines are using precise.
# MAIN
deb-amd64 http://archive.ubuntu.com/ubuntu precise main restricted universe multiverse
deb-i386 http://archive.ubuntu.com/ubuntu precise main restricted universe multiverse
# SECURITY
deb-amd64 http://archive.ubuntu.com/ubuntu precise-security main restricted universe multiverse
deb-i386 http://archive.ubuntu.com/ubuntu precise-security main restricted universe multiverse
Also, what others would you recommend adding to the list to be mirrored for a relatively stable environment? Again I understand this is subjective, just looking for some pointers.
Much appreciated in advance
© Ask Ubuntu or respective owner