Skip to content

Instantly share code, notes, and snippets.

View ThisCatLikesCrypto's full-sized avatar

Wilbur Williams ThisCatLikesCrypto

View GitHub Profile
@ThisCatLikesCrypto
ThisCatLikesCrypto / chaotic-sync.sh
Last active September 2, 2025 14:06
Script to check if the lastupdate file on the chaotic AUR main mirror server has changed, and if yes to synchronise from it.
#!/usr/bin/env bash
set -e
target="/srv/repo/chaotic"
tmp="/tmp/chaotic-tmp"
lock="/tmp/.chaotic-sync-lock"
bwlimit=0
source_url='rsync://builds.garudalinux.org/chaotic/'
lastupdate_url='https://builds.garudalinux.org/repos/chaotic-aur/lastupdate'