apt-mirror2 |
[-h] [--version]
[file ... configfile] |
apt-mirror2 is the Python/asyncio
reimplementation of the apt-mirror - an apt sources mirroring tool.
This project is intended to be a general drop-in apt-mirror replacement.
One of the main advantages of the
apt-mirror2 over the apt-mirror is that it never
leaves a broken mirror behind, provided it exits with code 0. This is
ensured by data integrity checks at all stages of mirroring.
Most of apt-mirror configuration directives are supported.
As of now proxy for FTP repositories is not supported.
File lists (ALL, NEW, MD5, SHA256, SHA512) are not written by default, but you can enable them with the write_file_lists option.
In addition there are some enhancements available:
arch=arch1,arch2’] can be used to
specify multiple repository architectures for mirroring. multiple
codenames (or flat folders) can be specified using comma as
delimiter.mirror_path URL PATH’ option may be
used to specify PATH to use for saving mirror files instead of the path
that is generated from URL.*.list’ files in the directory
named the same as the configfile with the .d suffix. Eg
‘/etc/apt/mirror.list.d/*.list’
.mirror.list’ .by-hash’ list option can be used to
control whether Acquire-By-Hash Release option should be respected or
enforced.wipe_size_ratio’ and
‘wipe_count_ratio’ settings.var_path’ folderdists’ folder is replaced
almost atomically using move instead of copy/linkPositional arguments:
/etc/apt/mirror.list’ when run with
the ‘apt-mirror’ filename and
‘/etc/apt/mirror2.list’ when run
with the ‘apt-mirror2’ filename and
file ‘/etc/apt/mirror2.list’ is
exists.Options:
APT_MIRROR_LOGLEVELinfo’ .apt-mirror’ filenameapt-mirror’ filenameapt-mirror2’ filenameapt-mirror2’ filenameYuri Konotopov <ykonotopov@gnome.org>