first commit

This commit is contained in:
julien 2025-01-14 17:39:32 +01:00
commit 736d644f04
3 changed files with 28 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
public/

21
README.md Normal file
View File

@ -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
```

6
sync.sh Executable file
View File

@ -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