grok-pull (1) - Linux Man Pages
grok-pull: Clone or update local git repositories
NAMEGROK-PULL - Clone or update local git repositories
SYNOPSISgrok-pull -c /path/to/repos.conf
This utility runs from a cronjob and downloads the latest manifest from the grokmirror master. If there are new repositories or changes in the existing repositories, grok-pull will perform the necessary git commands to clone or fetch the required data from the master.
- show program's version number and exit
- -h, --help
- show this help message and exit
- -v, --verbose
- Be verbose and tell us what you are doing
- -n, --no-mtime-check
- Run without checking manifest mtime.
- -f, --force
- Force full git update regardless of last-modified times. Also useful when repos.conf has changed.
- -p, --purge
- Remove any git trees that are no longer in manifest.
- -y, --pretty
- Pretty-print the generated manifest (sort repos and add indentation). This is much slower, so should be used with caution on large collections.
- -r, --no-reuse-existing-repos
- If any existing repositories are found on disk, do NOT set new remote origin and reuse, just skip them entirely
- -m, --verify-mirror
- Do not perform any updates, just verify that mirror matches upstream manifest.
- Only verify a subpath (accepts shell globbing)
- Location of repos.conf
Locate repos.conf and modify it to reflect your needs. The default configuration file is heavily commented.
Add a cronjob to run as frequently as you like. For example, add the following to /etc/cron.d/grokmirror.cron:
# Run grok-pull every minute as user "mirror" * * * * * mirror /usr/bin/grok-pull -p -c /etc/grokmirror/repos.conf
Please send support requests to the mailing list:
AUTHORmricon [at] kernel.org
COPYRIGHTThe Linux Foundation and contributors