RUNMIRRORS.CONF(5)
π RUNMIRRORS.CONF π
okay bestie, welcome to runmirrors.conf(5) β the little config file that runs the whole who-syncs-from-who situation. it's giving backstage pass energy π
β¨ NAME β¨
runmirrors.conf β the config file for runmirrors, no cap π«Ά
πΈ DESCRIPTION πΈ
so ftpsync is part of the ftpsync suite for mirroring Debian and Debian-like repositories of packages. and listen β there are way too many mirrors of Debian to populate them all from the machine that generates the archive ("ftp-master"), so instead the mirrors are organized in a tree-shaped hierarchy. π³
which means: every mirror has exactly one upstream that it syncs from, and each mirror can have any number of downstreams that in turn sync from it. it's a whole family tree and honestly? iconic. π
π OPTIONS π
MAILTOβ the script can send logs (or error messages) to a mail address. if this is unset it'll default to the current user.
Default: $LOGNAME
KEYFILEβ which ssh key are we using, bestie? π
Default: ~/.ssh/pushmirror
π Log options π
LOGDIRβ which directory should logfiles end up in?
Default: ~/.local/log/ftpsync in the package, ${BASEDIR}/log otherwise
LOGβ name of our own logfile.
heads up: ${NAME} is set by the ftpsync script depending on the way it is called. see README for a description of the multi-archive capability, and honestly just better always include ${NAME} in this path. fr fr.
Default: LOGDIR/{NAME}.log
LOGROTATEβ we do create a logfile for every run. to save space we rotate them, and this defines how many we keep.
Default: 14
π¦ Other options π¦
LOCKDIRβ our lockfile directory.
Default: ~/.local/lock/ftpsync in the package, ${BASEDIR}/locks otherwise
MIRRORSβ our mirrorfile.
Default: CONFDIR/{NAME}.mirror
SSH_OPTSβ extra ssh options we might want. hostwide. by default, ignore ssh key change of leafs.
Default -o StrictHostKeyChecking=no
PUSHARCHIVEβ what's our archive name? we will also tell our leafs about it π. this is usually empty, but if we are called asrunmirrors bpoit will default tobpo. this way onerunmirrorsscript can serve multiple archives, similar to whatftpsyncdoes.PUSHDELAYβ how long to wait for mirrors to do stage1 if we have multi-stage syncing.
Default: 600
π Hooks π
hook scripts can be run at various places. β¨
HOOK1β after reading config, before doing the first real action.HOOK2β between two hosts to push.HOOK3β when everything is done.
π SEE ALSO π
β AUTHORS β
Debian mirror team. π
and that's the whole vibe check, bestie β go forth and mirror. this was the ftpsync Manual's RUNMIRRORS.CONF(5) page, mwah π π
π¦ where this page comes from
- debian bookworm: ftpsync 20180513+nmu1 Β· GPL-2.0-only
- debian trixie: ftpsync 20180513+nmu1 Β· GPL-2.0-only
- ubuntu jammy: ftpsync 20180513+nmu1 Β· GPL-2.0-only
- ubuntu noble: ftpsync 20180513+nmu1 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms