logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

ftpsync-cron - Wrapper around ftpsync for use in cron(8)

Authors

       Debian mirror team.

                                                 ftpsync Manual                                  FTPSYNC-CRON(1)

Description

ftpsync-cron  is part of the ftpsync suite for mirroring Debian and Debian-like repositories of packages.
       As there are way too many mirrors of Debian to populate them all from  the  machine  that  generates  the
       archive (“ftp-master”), mirrors are organized in a tree-shaped hierarchy.  Thus, every mirror has exactly
       one  upstream  from which it syncs, and each mirror can have any number of downstreams which in turn sync
       from it.

       ftpsync-cron is a wrapper around ftpsync itself, intended to be run out of cron at regular, frequent  in‐
       tervals,  such  as  hourly.  When started, it reads the corresponding ftpsync.conf configuration file for
       the archive in question and determines this mirror’s upstream.  It then fetches the upstream’s trace file
       via HTTP and compares it to the version on disk from the last mirror run, thus learning whether  the  up‐
       stream mirror has updated.  If it has, ftpsync is triggered.

Example

       Example use in a user crontab:

       SHELL=/bin/bash 31 * * * * sleep $(( RANDOM %% 1800 )) && ./bin/ftpsync-cron

Name

       ftpsync-cron - Wrapper around ftpsync for use in cron(8)

See Also

ftpsync(1) +

Synopsis

ftpsync-cron [ARCHIVE]

See Also