ミラー

提供: VyOS jp
2014年4月1日 (火) 15:55時点におけるHigebu (トーク | 投稿記録)による版

移動: 案内検索

VyOS is meant to support multiple package mirrors.

Primary server

Address Location Maintainer Hoster
http://packages.vyos.net Amsterdam, the Netherlands SO3 Group

Load balancer

mirror.vyos.net redirects request to a random mirror. The path is preserved, e.g. http://mirror.vyos.net/example.iso would be redirected to e.g. http://ftp.example.com/software/vyos/example.iso

Mirrors

Address Location Maintainer Hoster
http://mirrors.nixus.es/vyos Murcia, Spain Sebastien Crammate Nixus Networks
http://0.se.mirrors.vyos.net Sweden Alexander Normann Adminor
http://mirror.symnds.com/software/vyos USA (east coast) Brian Seitz
http://vyos.sliqua.com/ USA (Ashburn, VA) Alexander McMillen Sliqua Enterprise Hosting
http://apt-mirror.koding.com/vyos USA (San Jose), NL (Amsterdam). Anycast Geraint Jones Koding
http://0.us.mirrors.vyos.net/vyos USA (west coast) Danny ter Haar Fromport
http://0.uk.mirrors.vyos.net UK
http://0.bg.mirrors.vyos.net Bulgaria Hristo Bogdanov
http://0.ua.mirrors.vyos.net Kiev, Ukraine Alexey Blinkov
http://mirrors.mediactivity.net/vyos/ Belgium Mickael Monsieur Mediactivity Telecom
http://ftp.qb.com.au/pub/vyos/ Australia Paul Gear Queensland Baptists
http://vyos.uv.es Spain University of Valencia
http://0.de.mirrors.vyos.net Germany Nick Altmann
http://ftp.tsukuba.wide.ad.jp/software/vyos/ Tsukuba, Japan Kohei TAKAHASHI WIDE Project

Create your own

Rsync is the preferred mirroring tool. Put something like this in a cron.daily script:

#!/bin/sh
rsync -avzh  --delete  rsync://packages.vyos.net/vyos ${target directory} > /var/log/vyos-rsync-`date +%Y-%m-%d`.log

Don't forget to make it executable with, assuming you named it /etc/cron.daily/vyos-sync:

chmod +x /etc/cron.daily/vyos-sync

The alternative is to add a line to crontab manually (assuming you named your script /usr/local/bin/vyos-sync):

30 4 * * * /usr/local/bin/vyos-sync > /dev/null 2>&1

WARNING: "--delete" is required for proper operation (it tells rsync to delete files if they are deleted from the remote server, which is important for package repos), but if you have any data in the directory, it will be removed too. Make sure the target directory is empty or doesn't contain any valuable data before running it.