ABS Mirror Server

From ArchWiki

Jump to: navigation, search
i18n
English
Image:Tango-emblem-important.png The factual accuracy of this article is disputed.
Please help improve the article and verify/correct/remove disputed content. (Discuss)

Introduction

A Tutorial for setting up a cvsup server to use as a ABS mirror for your local lan.

  • Save bandwidth by using one machine to sync abs from cvs.archlinux.org
  • Only need to open or ssh forward one archlinux box through your firewall
  • Helpful for small home lans all the way up to corporate shops where firewalls limit access to the net

You may think that abs is not necessary, but when you want to configure a package to fit your needs then it is indespencible. I could think of many examples, but suppose you installed the vsftp package from pacman only to find that you need openssl integration with vsftp, then you will need to use abs to add options to vsftp.

First Steps

I begin by reading the makepkg/abs tutorial. You can access it here makepkg/abs tutorial

Next you should create a script to sync abs with cvs.archlinux.org. You can just use the default abs.conf and abs script. You will however want to configure the repositories that you want to distribute to your other arch linux boxes. You can use vi or pico to create a script. I called mine absupdate.sh.

vi /usr/local/bin/absupdate.sh

Inside the absupdate.sh script you need the full path to the abs script "/usr/bin/abs". In mine I use the date and find command to keep log files for only the last seven days. That way I can see if my script is syncing correctly with the main cvsup server cvs.archlinux.org. Then just add the script to your cronjobs as root. If I get requests regarding how to create a cron script like I described then I will add it to the wiki.

crontab -e 
00 12 * * * /usr/local/bin/absupdate.sh &

Now I have the server that I will be using for my abs lan mirror syncing with cvs.archlinux.org

Personal tools