@@ -120,8 +120,20 @@ jobs:
120120 run : |
121121
122122 # prepare feeds
123- #A=$(rsync -ar rsync://rsync.armbian.com/dl/ | awk '{ print ""$2"|https://dl.armbian.com/"$5"|"$3"T"$4"Z" }' | grep "archive/" | grep -v ".txt")
124- A=$(rsync -e "ssh -p 10023 -o StrictHostKeyChecking=accept-new" -ar [email protected] :/storage/www/dl/ | awk '{ print ""$2"|https://dl.armbian.com/"$5"|"$3"T"$4"Z" }' | grep "archive/" | grep -v ".txt\|homeassistant\|openhab\|kali\|omv") 123+ A=$(rsync --recursive --list-only rsync://rsync.armbian.com/dl/ \
124+ | awk '{
125+ gsub(",", "", $2); # Remove commas in size
126+ gsub("/", "-", $3); # Fix date format
127+ url = "https://dl.armbian.com/" $5; # Construct URL
128+
129+ # Include URLs matching /<folder>/archive/Armbian
130+ if (url ~ /\/[^\/]+\/archive\/Armbian/) {
131+ # Exclude if url matches any of the unwanted substrings
132+ if (url !~ /\.txt|homeassistant|openhab|kali|omv/) {
133+ print $2 "|" url "|" $3 "T" $4 "Z"
134+ }
135+ }
136+ }')
125137 B=$(gh release view --json assets --repo github.com/armbian/community | jq '.assets[] | .size, .url, .createdAt' | xargs -n3 -d'\n' | grep -v ".txt" | sed "s/\"//g" | sed -e 's| |\||g')
126138 C=$(gh release view --json assets --repo github.com/armbian/os | jq '.assets[] | .size, .url, .createdAt' | xargs -n3 -d'\n' | grep -v ".txt" | sed "s/\"//g" | sed -e 's| |\||g')
127139 D=$(gh release view --json assets --repo github.com/armbian/distribution | jq '.assets[] | .size, .url, .createdAt' | xargs -n3 -d'\n' | grep -v ".txt" | sed "s/\"//g" | sed -e 's| |\||g')
@@ -184,7 +196,7 @@ jobs:
184196
185197 SOURCE=$(mktemp -d)
186198 DESTINATION=$(mktemp -d)
187- rsync -e "ssh -p 10023 -o StrictHostKeyChecking=accept-new" -zqvr --include="*/archive/*.torrent" --exclude="/*/*/*" --exclude="_*/" --exclude="control" --exclude="quotes.txt" --exclude="*/all-torrents.zip" upload@k-space.ee .armbian.com:/storage/www /dl/ ${SOURCE}
199+ rsync -e "ssh -p 10023 -o StrictHostKeyChecking=accept-new" -zqvr --include="*/archive/*.torrent" --exclude="/*/*/*" --exclude="_*/" --exclude="control" --exclude="quotes.txt" --exclude="*/all-torrents.zip" upload@fi.mirror .armbian.de:/mirror /dl/ ${SOURCE}
188200 find ${SOURCE}/. -mindepth 3 -exec mv -i -- {} ${DESTINATION}/ \;
189201 zip -qj all-torrents.zip ${DESTINATION}/*.torrent
190202
0 commit comments