Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen der Seite angezeigt.

Link zu der Vergleichsansicht

Beide Seiten, vorherige Überarbeitung Vorherige Überarbeitung
Nächste Überarbeitung
Vorherige Überarbeitung
Letzte ÜberarbeitungBeide Seiten, nächste Überarbeitung
server_und_serverdienste:apt-mirror_mit_ubuntu_20.04 [2021/02/18 22:30] lomaserver_und_serverdienste:apt-mirror_mit_ubuntu_20.04 [2021/03/01 23:21] – [Cron erstellen - jeden 1ten im Monat] loma
Zeile 23: Zeile 23:
 apt-mirror apt-mirror
  
-cd /package-mirror/tmp 
-for p in "${1:-focal}"{,-{security,updates}}\ 
-/{main,restricted,universe,multiverse};do >&2 echo "${p}" 
-wget -q -c -r -np -R "index.html*"\ 
- "http://archive.ubuntu.com/ubuntu/dists/${p}/cnf/Commands-amd64.xz" 
-wget -q -c -r -np -R "index.html*"\ 
- "http://archive.ubuntu.com/ubuntu/dists/${p}/cnf/Commands-i386.xz" 
-done 
  
-cp -a archive.ubuntu.com /package-mirror/mirror/.+/package-mirror/var/clean.sh 
  
 cd /package-mirror/mirror/apt.puppetlabs.com cd /package-mirror/mirror/apt.puppetlabs.com
Zeile 45: Zeile 38:
 cd i18n cd i18n
 wget  http://security.debian.org/debian-security/dists/buster/updates/main/i18n/Translation-en.xz wget  http://security.debian.org/debian-security/dists/buster/updates/main/i18n/Translation-en.xz
-</code>+ 
 + 
 +#cd /package-mirror/mirror/archive.ubuntu.com/ubuntu/dists/focal-security 
 +cd /package-mirror/mirror/archive.ubuntu.com 
 +wget -nH -np --recursive http://archive.ubuntu.com/ubuntu/dists/focal-security/main/cnf/ 
 +wget -nH -np --recursive http://archive.ubuntu.com/ubuntu/dists/focal-security/multiverse/cnf/ 
 +wget -nH -np --recursive http://archive.ubuntu.com/ubuntu/dists/focal-security/restricted/cnf/ 
 +wget -nH -np --recursive http://archive.ubuntu.com/ubuntu/dists/focal-security/universe/cnf/ 
 + 
 +wget -nH -np --recursive http://archive.ubuntu.com/ubuntu/dists/focal-updates/main/cnf/ 
 +wget -nH -np --recursive http://archive.ubuntu.com/ubuntu/dists/focal-updates/multiverse/cnf/ 
 +wget -nH -np --recursive http://archive.ubuntu.com/ubuntu/dists/focal-updates/restricted/cnf/ 
 +wget -nH -np --recursive http://archive.ubuntu.com/ubuntu/dists/focal-updates/universe/cnf/ 
 + 
 +</file>
 <code> <code>
 chmod +x /usr/local/bin/apt-mirror-executes chmod +x /usr/local/bin/apt-mirror-executes
Zeile 136: Zeile 143:
 ln -s /package-mirror/mirror/apt.iteas.at /var/www/html/iteas ln -s /package-mirror/mirror/apt.iteas.at /var/www/html/iteas
 </code> </code>
 +
 +===== Cron erstellen - jeden 1ten im Monat =====
 + nano /etc/cron.d/apt-mirror
 +
 +<code>
 +#
 +# Regular cron jobs for the apt-mirror package
 +#
 +0 4 1 * *       apt-mirror     /usr/local/bin/apt-mirror-executes > /var/spool/apt-mirror/var/cron.log
 +</code>
 +
 +
 +