From 736d644f04ce362c5c1be1decb650184d71c77cb Mon Sep 17 00:00:00 2001 From: julien Date: Tue, 14 Jan 2025 17:39:32 +0100 Subject: [PATCH] first commit --- .gitignore | 1 + README.md | 21 +++++++++++++++++++++ sync.sh | 6 ++++++ 3 files changed, 28 insertions(+) create mode 100644 .gitignore create mode 100644 README.md create mode 100755 sync.sh 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