Add section about automation

This commit is contained in:
Midgard 2019-11-06 13:54:41 +01:00
parent 3c1e51bb14
commit 9a44b6d140
Signed by: midgard
GPG Key ID: 511C112F1331BBB4
1 changed files with 5 additions and 0 deletions

View File

@ -30,6 +30,11 @@ git clone https://git.zeus.gent/midgard/git-mirror.git; cd git-mirror
``` ```
The first remote, github is the leader. The others are followers that are updated. The first remote, github is the leader. The others are followers that are updated.
## Automate
To automate mirroring, run it periodically, for example once every 30 minutes. On a *NIX you could
use cron for this, or write a system service definition for your system supervisor (such as
systemd, OpenRC or runit).
## Tor ## Tor
The leader is fetched over Tor through torify. Make sure Tor is running, or edit the script, The leader is fetched over Tor through torify. Make sure Tor is running, or edit the script,
changing `torify git fetch` into `git fetch`. changing `torify git fetch` into `git fetch`.