FTPSYNC-CRON(1)
π FTPSYNC-CRON β the cron wrapper bestie β¨
okay so welcome to the ftpsync-cron(1) girlies' corner of the ftpsync Manual π
this is a section-1 page, she's a command, she's a whole vibe
πΈ NAME πΈ
ftpsync-cron β a wrapper around ftpsync for use in cron(8) π«Ά
β¨ SYNOPSIS β¨
ftpsync-cron [ARCHIVE]
π DESCRIPTION π
okay bestie, sit down, hydrate, this is actually so cool π§
ftpsync-cron is part of the ftpsync suite for mirroring Debian and Debian-like repositories of packages. no cap. π§
so here's the tea: there are way too many mirrors of Debian to populate them all from the machine that generates the archive (that's βftp-masterβ π), so mirrors are organized in a tree-shaped hierarchy. π³ meaning:
- every mirror has exactly one upstream that it syncs from β¬οΈ
- and each mirror can have any number of downstreams, which in turn sync from it β¬οΈβ¬οΈβ¬οΈ
it's giving family tree but make it packages π iconic honestly
now, ftpsync-cron is a wrapper around ftpsync itself, and she is designed to be run out of cron at regular, frequent intervals β like, hourly. β° main character energy fr fr
when she gets started, here's the whole routine:
- she reads the corresponding
ftpsync.confconfiguration file for the archive in question π - she determines this mirror's upstream π
- she fetches the upstream's trace file via HTTP π
- she compares it to the version on disk from the last mirror run β so she's literally learning whether the upstream mirror has updated π§ β¨
- and if it has? she triggers
ftpsync. periodt. π₯
like the way she just checks and then only does the work when it matters? lowkey genius, highkey obsessed. π
π¦ EXAMPLE π¦
example use in a user crontab π
SHELL=/bin/bash
31 * * * * sleep $(( RANDOM %% 1800 )) && ./bin/ftpsync-cron
(that lil sleep + $RANDOM combo is the random-jitter moment, iykyk π)
π SEE ALSO π
π AUTHORS π
Debian mirror team. π«‘ thank you for your service, legends
okay that's the whole page!! π one last lil sign-off: this gorgeous thing lives in the ftpsync Manual, and you can find her filed under FTPSYNC-CRON(1) β go forth and sync, bestie πβ¨π¦
π¦ 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