User Tools

Site Tools


services:apt-mirror

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

services:apt-mirror [2016/06/29 20:29] – created dgallowayservices:apt-mirror [2022/06/28 14:25] (current) – djgalloway
Line 17: Line 17:
  /usr/bin/apt-mirror >> /var/spool/apt-mirror/var/cron.log  /usr/bin/apt-mirror >> /var/spool/apt-mirror/var/cron.log
 done done
 +</code>
 +
 +===== /bin/repomirror.sh =====
 +Called by root's crontab every day at 6PM Pacific time.
 +<code>
 +root@gitbuilder-archive:~# cat /bin/repomirror.sh | egrep -v "(^#.*|^$)"
 +tmp=/tmp/temprpm
 +rm -Rf $tmp 2> /dev/null
 +mkdir $tmp
 +export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
 +/usr/sbin/chroot /images/rhel7 <<EOF
 +reposync -q -d -l --repoid=epel --download_path=/home/apt-mirror/mirror/epel7
 +createrepo /home/apt-mirror/mirror/epel7
 +EOF
 +rsync -av --delete-after /images/rhel7/home/apt-mirror/mirror/epel7/ /home/apt-mirror/mirror/epel7/
 +rsync -aHS --delete-after  --delay-updates rsync://mirrors.kernel.org/centos/ /home/apt-mirror/mirror/centos/
 </code> </code>
  
services/apt-mirror.1467232195.txt.gz · Last modified: by dgalloway