commit 736d644f04ce362c5c1be1decb650184d71c77cb Author: julien Date: Tue Jan 14 17:39:32 2025 +0100 first commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..364fdec --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +public/ diff --git a/README.md b/README.md new file mode 100644 index 0000000..47917e4 --- /dev/null +++ b/README.md @@ -0,0 +1,21 @@ +# chimera.netig.net + +Mirror served by Caddy. + +## Usage + +Create directory : +``` +# mkdir /srv/dwalin/chimera.netig.net/public +``` + +Manualy sync the repositories : +``` +./sync.sh +``` + +Then add this line into the host crontab with `crontab -e` to sync every hours : +``` +# Mirror synchronization +0 */1 * * * /srv/dwalin/chimera.netig.net/sync.sh +``` diff --git a/sync.sh b/sync.sh new file mode 100755 index 0000000..307baae --- /dev/null +++ b/sync.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +# Chimera Linux +MIRROR=rsync://repo.chimera-linux.org/chimera +TARGET=/srv/dwalin/chimera.netig.net/public +rsync -rlptvSH --delete-delay --delay-updates --progress $MIRROR $TARGET