From: programmerjake Date: Thu, 26 Mar 2020 02:09:33 +0000 (+0000) Subject: git mirroring completed X-Git-Tag: convert-csv-opcode-to-binary~3063 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7a54dab085d50f78b259d64c780dd82b7743f308;p=libreriscv.git git mirroring completed --- diff --git a/resources/server-setup/git-mirroring.rst b/resources/server-setup/git-mirroring.rst index 78f646923..62880bc14 100644 --- a/resources/server-setup/git-mirroring.rst +++ b/resources/server-setup/git-mirroring.rst @@ -16,7 +16,7 @@ Steps for setting up automatic mirroring cron jobs: sudo -H -u git-mirroring /bin/bash -#) Switch to home directory: +#) Switch to the home directory: .. code:: bash @@ -92,4 +92,39 @@ Steps for setting up automatic mirroring cron jobs: .. code:: bash git push gitlab - + +#) Switch back to the home directory: + + .. code:: bash + + cd + +#) Ensure :code:`sync.sh` works properly: + + .. code:: bash + + ./sync.sh + +#) Set up the cron job for running :code:`sync.sh`: + + a) Edit the user's :code:`crontab`: + + .. code:: bash + + crontab -u git-mirroring -e + + #) Add the following line to the end, then save and exit: + + .. code:: + + * * * * * exec ~/sync.sh >> ~/sync.log 2>&1 + +#) Wait for the cron job to run (2 minutes should be sufficient), then check the log file: + + .. code:: bash + + less ~/sync.log + + The log file should exist and be empty, if it isn't empty, it contains error messages. If it doesn't exist, the cron job didn't run yet for some reason, try waiting a little longer. + +#) Try pushing a commit to one of the upstream repos and seeing if it gets properly synced to the corresponding mirror repo. The sync job runs every minute, so wait 2 minutes and check.