lore wrote: > hi all, > i need to realize an unique swup server for all my TSL box of the intranet > ( to reduce the cost of internet connection ). > any ideas or links for doc? > > thanks in advance
stick this in your crontab (I have it in hourly) on the box you want to host the mirror; #!/bin/bash if [ -f /tmp/.tsl-mirror ]; then echo 'Already running!' exit 1 fi touch /tmp/.tsl-mirror umask 022 #echo Updating 2.2 mirror cd /home/ftp/pub/trustix/releases/trustix-2.2 rsync -lru --delete rsync.trustix.org::trustix/releases/trustix-2.2/ . #echo #echo 'Updating 3.0 mirror' cd /home/ftp/pub/trustix/releases/trustix-3.0 rsync -lru --delete rsync.trustix.org::trustix/releases/trustix-3.0/ . #echo #echo Updating 2.2 Contrib cd /home/ftp/pub/contrib/community-2.2 rsync -lru --exclude=*archived_* --delete rsync.trustix.org::tsldev/community-2.2/ . #echo #echo Updating 3.0 Contrib cd /home/ftp/pub/contrib/community-3 rsync -lru --exclude=*archived_* --delete rsync.trustix.org::tsldev/community-3/ . rm -f /tmp/.tsl-mirror just delete the repos you don't want to mirror - some of those lines might wrap in your client, so make sure all the rsync commands are on one line. next, change swup.conf on all the boxes to point to: location = "http://ftp.example.com/pub/trustix/releases/trustix-x.x/i586/trustix/rdfs/latest.rdf" or, on the mirror box; location = "file:///home/ftp/pub/trustix/releases/trustix-x.x/i586/trustix/rdfs/latest.rdf" and you should be all set Cheers, -- Morten _______________________________________________ tsl-discuss mailing list [email protected] http://lists.trustix.org/mailman/listinfo/tsl-discuss
